ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.
0
votes
1answer
11 views
Not able to assign the Model to the Cache
My Code:
public class MyCustomGridActionResultFactory : IGridActionResultFactory
{
public System.Web.Mvc.ActionResult Create(object model)
{
ResultCache.AdvanceSearchGridResult = ...
0
votes
1answer
5 views
WebAPI routeTemplate customization
I'm trying to figure out if its possible to change the routeTemplate format of WebAPI.
Currently the default is set to be api/{controller}/{id}
I want to know if its possible to change the "api" ...
0
votes
0answers
10 views
MVCAwesome, MVC4 and NuGet
I created a new MVC4 project using Razor syntax, and used NuGet to add MVCAwesome.
Looking at this page, it appears that all the expected files and configuration files appear to be in place. I made ...
0
votes
0answers
21 views
Getting HttpRequest extension method written for MVC to work in Web Api
I'm working with OAuth 2.0 for MVC, a .NET library for Oauth2. I'm building a Web Api project, however, and am hoping to get this library to work with Web Api.
The problem I'm running into is that ...
0
votes
0answers
17 views
MVC3 Routing with regular expressions
In our current project we have url's like {controller}/{action}/param1/param2/...param-N
and {controller}/{action}/param.
I am able to get the routing for second type as it is looking ...
1
vote
0answers
10 views
Why MVC4 web app does not use logged in windows authentication credential to access MVC4 web api service
My MVC4 web-app uses AppPoolIdentity to access MVC4 web-api service running on a different server, instead of using logged in user's Windows authentication credentials. Windows authentication is ...
0
votes
2answers
36 views
How to pass data from StartPage (_ViewStart.cshtml) to Layout.cshtml?
In my layout page, I have a banner that I only want to show at Staging environment. How can I have it hidden automatically once deployed to Production?
In _ViewStart.cshtml, I can use ...
1
vote
1answer
25 views
MVC 4 Unobtrusive Validation on objects in a view model
I have validation attributes on the properties in my model. If I pass the model to the view the validation works fine. However, when that model is a property of a View Model and the controller ...
2
votes
1answer
20 views
Where is MvcRouteHandler registered
I'm trying to understand ASP.Net MVC at a lower level. Specifically, I'm trying to understand how the MVC runtime gets started. For my initial dig into the call stack / decompilation it appears that ...
0
votes
1answer
16 views
How do you define a layout for specific areas in ASP.Net MVC 4?
I'm playing a little catch up here as I went straight from MVC2 to MVC4, so learning Razor and everything else all at once.
I'm using an admin area in this new application, and I noticed when I went ...
2
votes
2answers
27 views
How do I get files AND form values from an ASP.NET MVC 4 website?
I have an ASP.NET MVC Website that has a dropdown list that is being created using this in the view...
@Html.DropDownList("Programs")
Programs is populated from a Business Object collection and ...
1
vote
1answer
27 views
Asynchronous action for strongly-typed partial view in _Layout
So, here's the rundown...
I've got a master layout page for my MVC 4 app that has some dynamic information and needs to be strongly typed to a specific domain entity to get that information. To keep ...
0
votes
0answers
16 views
Chrome 'please match the requested format' validation message
I am playing around with HTML 5 validation and localization and have managed to get some code working that allows me to localize the HTML 5 validation error messages (see below). My problem is, in ...
-1
votes
0answers
26 views
mvc4 openauth login [closed]
I have set up an app in Facebook and I have implemented a facebook button into my website, on login I get:
"An error occurred. Please try again later."
from facebook but it works with Google ...
0
votes
1answer
34 views
Remove <ArrayOf. From MVC Web Api response
I am getting the following response from a standard MVC 4 WebApi project;
<ArrayOfProduct xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
...