Tagged Questions
2
votes
0answers
256 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
485 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
286 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
271 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
520 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
657 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 ...