ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.

learn more… | top users | synonyms

-1
votes
0answers
42 views

Good source code project examples of MVC 4/Jquery I could use as a reference? [closed]

I have a few projects like Sportstore (from a MVC book) and MusicStore (from the MVC web site) I use as reference sometimes.. Is there any good site that combines MVC 4/Jquery or even just Jquery ...
1
vote
2answers
85 views

MVC : Does Code to save data in cache or session 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 ...
0
votes
0answers
28 views

Why is DefaultModelBinder ignoring custom prefix specified by Bind attribute? [migrated]

In next example DefaultModelBinder will look for any data item called travels and create an array that contains those items: [HttpPost] public ActionResult Index(string[] travels) { ...
0
votes
0answers
7 views

what is the correct way to pass a range of values using “routing table” url format [migrated]

I am learning ASP.NET MVC and it is easy to pass a single value to a view, using the following url format: controller/view/id and in the controller's code, I can simply define the interger id ...
1
vote
3answers
114 views

MVC4 Service > Controller Models

I'm working on a MVC4 N-tier application and have a quick question about Service to Controller relation and using Domain/ViewModel. public ActionResult Details(int id = 0) { ...
1
vote
1answer
103 views

Incorporating web designer's HTML pages into an MVC4 application

We are embarking on a new project which will be using the ASP .NET MVC4 platform. I have been informed that the design is being outsourced to a custom design firm and they will be supplying us with ...
-1
votes
0answers
26 views

Why did Result filter get called? [migrated]

public class CustomResultAttribute : FilterAttribute, IResultFilter { public void OnResultExecuted(ResultExecutedContext filterContext) {} public void ...
-1
votes
0answers
17 views

Why doesn't IActionFilter.OnActionExecuted get called? [migrated]

public class FirstActionAttribute : FilterAttribute, IActionFilter { /* Is Called */ public void OnActionExecuted(ActionExecutedContext filterContext) {} public void ...
1
vote
0answers
131 views

Reusing values for segment variables when generating outbound URLs

When routes are matched to the outbound URLs, the routing system will try to find values for each of the segment variables in route's URL pattern by also looking at the values from the current ...
1
vote
2answers
794 views

ASP.NET MVC 4 with Entity Framework 5 and SimpleMembership integrated into Repository and Unit Of Work pattern

I have a ASP.NET MVC4 project in which I would like to use the SimpleMembership. The application has a Person table that holds relevant information about users in the system. I would like a link ...
0
votes
1answer
264 views

Implementing a Service Layer with MVC4 while honoring Single Responsibility

I'm trying to learn some best practices while I ramp up on MVC4. I have a solution with three projects: Web: MVC stuff Core: Data Model Tests: Testing classes I'm now trying to add: Services: ...
-3
votes
2answers
111 views

What approaches should be considered for user experience in asp.net mvc 4? [closed]

I'm a new ASP.NET MVC programmer. I've done asp.net webforms extensively and I used the Ajax Control Toolkit and update panels to provide a smoother user experience. What paradigms should I be ...
1
vote
1answer
149 views

project layout using webapi

I have the following project structure I would like to implement. I would like to know if there are any pitfalls to structuring my code this way. It is going to be using Microsoft's WebAPI, an MVC 4 ...
5
votes
4answers
6k views

What exactly is “Web API” in ASP.Net MVC4?

I know what a Web API is. I've written API's in multiple languages (including in MVC3). I'm also well practiced in ASP.Net. I just discovered that MVC4 has "Web API" and without going through the ...
11
votes
3answers
5k views

WCF Data Services (OData) Vs ASP.NET Web API? Hypermedia?

I'm desiging a distributed application that will consist of REST services and a variety of clients (Silverlight, iOS, Windows Phone 7, etc). I was ready to decide that I would implement my REST ...