I am trying to pass a form element into an MVC3 view by using the Viewbag and simply write the HTML to the page ...
I have mail-merge like functionality, which takes a template, some business object, and produces h开发者_高级运维tml which is then made into PDF.
My controller action code: ViewBag.country = from p in CultureInfo.GetCultures(CultureTypes.AllCultures & ~CultureTypes.NeutralCultures)
I have a function that returns a generated PDF file but the problem is it shows it in the current browser window... I need for it to open in a new window. I dont see how I can pass it into a view for
I have List of checkbox in my view. it shows me in vertical format. Like a b c d ... But i want to format that in such a way that will look like.
Is there a way that I can pass the same BaseViewModel for every request without returning either the BaseViewModel or something that inherits from the BaseViewModel for each view? I\'m usi开发者_JS百科
I have a Person model and a student model. The student model has 2 FKs of PersonIDs; one for student and the other for parent.
I wanna create selectlists with selected option attribute and i wanna increse the value of \"i\" each time while im creating another selectlist.
i am doing mvc3 and linQ i have the database like this classstudentgender AjohnMale BGeorgeMale AbillFemale
Having a little bit of trouble figuring out using开发者_开发技巧 a ternary with Razor view engine.