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.
1
vote
2answers
31 views
MVC : Does code to save data is session or cache belongs in controller?
I'm a bit confused if saving the information to session code below, belongs in the controller action as shown below or should it be part of my Model?
I would add that I have other controller methods ...
2
votes
0answers
241 views
Better way to raise errors back to associated controls on the view from model using ASP.NET MVC 2.0
I'm wanting to know a better way to feed errors back from my model logic to the front end view ensuring the errors are tied directly with the control they are against.
So, essentially I have code ...
2
votes
0answers
439 views
MVC folder structure
I currently have a folder structure on my MVC .NET website that I am completely at a loss as to whether it is acceptable or not. Here is an outline of the structure
[Areas]
[Area1]
...
1
vote
3answers
266 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:
public ActionResult ...
1
vote
1answer
260 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 seem helpful to start with those ...
3
votes
1answer
2k 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, but is this a good way of doing it?
...
4
votes
3answers
514 views
Stackoverflow Like Pager
I've been working on a stackoverflow like pager for my personal use and I've gotten everything working pretty good. Some of my logic is a bit suspect though. Especially the logic in the Pager class ...
6
votes
3answers
651 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 ...