Tagged Questions
5
votes
2answers
1k views
Using a BaseController in MVC asp.net to reuse the repository
I have a repository class that impliments a repository Interface.
In my Controllers I want a way to access the repository without creating constructors each time in the controller. So now all my ...
5
votes
1answer
477 views
Is this nesting of partial views poor design?
I feel like using this many partial views where a view renders a partial that renders a partial is just digging a hole of poor design, so I'm looking for any suggestions or guidance as to if this is ...
1
vote
1answer
97 views
Which parts of my code are redundant?
Hey guys I have the following code, which i kind of just put together sloppily since I'm not really familiar with Razor/html... but nonetheless it does what I want it to do, which is basically passing ...
1
vote
2answers
956 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
66 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 ...
2
votes
0answers
96 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
8k 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 ...
3
votes
1answer
165 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