I am have been working on an ASP.NET Application. When passing data from the Controller to the View I have been doing the following-
I\'m by no means lazy, but already 2 days overdue on our current sprint in my first ever MVC project, so I\'ve been using the Add View Wizard 开发者_运维百科to generate strongly typed views, but now t
The initial situation is that I map my domain model into a presentation model. I have to display an update/create formular with textboxes and a dropdownlist.
In my controller I create a list of SelectListItems and store this in the ViewData.When I read the ViewData in my View it gives me an error about incorrect types.If I manually cast the types it works
in asp.net mvc , if i shove a dictionary or an array of objects in ViewData and read that in my view compared to creating a view model class that has that same data structure, is there a performa开发者
I have a page with a bunch of labels and checkboxes on it. On this page, the labels need to be easily customizable after the project is deployed.
There are a couple of posts about this on Stack Overflow but none with an answer that seem to fix the problem in my current situation.
After a week of asp.net mvc2, I still haven’t understood the advantages of ViewData.model or rather how I can properly utilize Viewdata. Can some teach me how to use Viewdata properly?
Here\'s the functionality I\'d like to exploit: I\'ve a class myClass and would like to iterate over a collection that contains all the properties of that class. I\'d like to send the index of that co
When is it appropriate to store data in HttpContext.Current.Items[...] vs storing data in ViewData[...]?