Questions tagged [asp.net-mvc-2]

ASP.NET MVC 2 is the second major version of the ASP.NET MVC platform, it has since been outdated by ASP.NET MVC 3.

Filter by
Sorted by
Tagged with
9
votes
1answer
50k views

MVC binding list of values to checkboxlist in an efficient way

I have this code which generates and shows list of selectable items that user can post to controller in order to save into database. Model looks like this: ...
5
votes
3answers
3k views

Generic repository pattern

Please have a through look my custom implementation of generic repository pattern and suggest anything I may be lacking. I am using a generic interface with 6 methods I'll be using a repository class ...
2
votes
3answers
1k views

Removing repetitive code in ASP.NET MVC Controller actions?

I want to keep things DRY, so I'm trying to figure out: Is it possible to remove repetitive parameters and code from ASP.NET MVC Controller actions? eg given these Actions: ...
1
vote
1answer
591 views

Adding or Replacing a Page item in a QueryString in C#.

Can this code be improved? I'm avoiding using the QueryString collection because the query string may contain eg: OrderBy=Column1&OrderBy=Column2 and it didn't ...
5
votes
1answer
12k views

Storing Temporal Message Lists in ASP.NET MVC TempData

I've been using the following the code to store temporal error messages in TempData, to be displayed from my master page on production sites without any problems, ...
8
votes
3answers
889 views

My Calendar generation code is slow. How do I improve it?

I have a model I have created to generate iCal and the necessary JSON for the jQuery calendar plugin Full Calendar to work. When I display the page, the JSON generation takes about 7 seconds. The ...