1
vote
2answers
48 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 ...
1
vote
0answers
38 views

ASP.NET MVC - Help needed to Improve the code for Drop-Down Box?

I have created the below drop-down to populate a list of cities. All works fine, but I would like to know the better ways of doing this please. Also, please let me know if it is possible to create ...
1
vote
0answers
26 views

PBKDF2 Authorization first go, is this optimal?

I've discovered that using hashed passwords with salts is much better idea than MD5/SHA256 so I'm not hashing them with PBKDF2. However I'm wondering if this is correct approach to authorize my user. ...
2
votes
1answer
5k views

Suggestions for JQGrid Dynamic Columns and Server-Side paging ,sortin , filtering etc.

I have a requirement where I need to build a grid with dynamic columns. I am dealing with a large dataset so I would like to use server-side paging,sorting,filtering logic so that I render only a ...
2
votes
1answer
156 views

Working with plurals

Is there any way to clean code like this up? Your file<%: Model.Files.Count() > 1 ? "s were" : " was" %> successfully uploaded