Skip to main content

Questions tagged [asp.net-mvc-3]

ASP.NET MVC 3 is the third major version of Model-View-Controller extension for developing web applications in a .NET framework

2 votes
1 answer
4k views

I'm new to MVC and i'm having some difficulty on understanding the proper usage of ViewModels and Controllers. I have this ...
Ariel's user avatar
  • 145
3 votes
2 answers
3k views

I want to see if this is as streamlined as possible. Most of the logic is accomplished through methods in the model. The controller does one of four things: redirects new users to registration ...
aaronmallen's user avatar
2 votes
2 answers
752 views

I have a custom attribute in my assembly called SemverAttribute, and I have a helper class called AppInfo that has a function to return a number called the Semver number. It accepts an id of null-6. ...
aaronmallen's user avatar
4 votes
1 answer
1k views

I have the class below to manage my specific implementation of a membership system using entity framework 6.1 Is the use of static access correct in this case? as far as I understood that EF context ...
ymg's user avatar
  • 143
17 votes
1 answer
24k views

I know that the DBContext represents a session (Unit-Of-Work and Repository) with the database, however I an unsure as to when I should have a different ...
acarlon's user avatar
  • 283
1 vote
1 answer
11k views

I'd like to check my understanding and usage of the AutoMapper in my ASP.Net MVC app. I setup the maps in Application_Start: ...
Mark Tait's user avatar
  • 111
4 votes
3 answers
2k views

I have a view model with properties that represent years and months: ...
Aleksei Chepovoi's user avatar
7 votes
2 answers
983 views

I am using Castle Windsor as my IoC container and I registered it as a DependencyResolver to let the MVC framework know about it. With the Entity Framework I have ...
Lukas Pirkl's user avatar
4 votes
2 answers
1k views

I have created a drop-down to populate a list of cities. Everything works fine, but I would like to know better ways of doing this. Also, please let me know if it is possible to create the same drop ...
Ren's user avatar
  • 153
20 votes
1 answer
42k views

I am trying to use Entity Framework as simple as posible. Use UnitOfWork and Repository patterns seems to be overkill because whole web application will be pretty straightforward. I came with this ...
Lukas Pirkl's user avatar
5 votes
2 answers
11k views

I have a pretty common issue: I need to know the name of current user and also name of the current controller so I can highlight/disable some links. Here's some solutions I found by myself: Get all ...
Vladislav Qulin's user avatar
6 votes
2 answers
1k views

I'm pretty new to asp and c# and I have a couple of concerns with the security of the code I have written (shown below). Basically all it does is allow you to enter a quantity before you add the item ...
Troy Poulin's user avatar
5 votes
1 answer
8k views

Recently I had the need to make some ajax calls within a MVC 3.0 with Razor and jQuery application. After a bit of trial and error and refactoring it was discovered that a number of different needs ...
dreza's user avatar
  • 6,537
4 votes
2 answers
17k views

This code works fine, but I just don't like all the if else. If I keep adding field to filter, it's going to get messy. I am not using EF and cannot on this. ...
Stone Temple Aviators's user avatar
3 votes
3 answers
236 views

I have the following: ...
Angela's user avatar
  • 151

15 30 50 per page
1
2 3 4 5