Top "Asp.net-mvc-2" questions

ASP.

Asp.net MVC Authorize attribute, redirect to custom "no rights" page

Asp.net MVC2 does redirect to login page with response 302 when authenticated user has no rights. I would like to …

asp.net-mvc asp.net-mvc-2
Should I use Url.Content() or ResolveUrl() in my MVC views?

When building code like this: <script type="text/javascript" src="<%=ResolveUrl("~/js/js.js")%>"></script&…

asp.net-mvc-2 url-rewriting .net-4.0 relative-path
Resolving "this operation requires IIS integration pipeline mode" in ASP.net MVC2

I'm developing an ASP.net MVC2 application, and implement an export to .csv controller action, but when I add the …

.net asp.net-mvc-2 download iis-7.5 notimplementedexception
Asp.Net MVC 2 - Bind a model's property to a different named value

Update (21st Sept 2016) - Thanks to Digbyswift for commenting that this solution still works in MVC5 also. Update (30th April 2012) …

c# asp.net-mvc asp.net-mvc-2
Why are Redirect Results not allowed in Child Actions in Asp.net MVC 2

I have some partial actions that I render with the Asp.Net Futures RenderAction method. Some of these perform redirects …

asp.net-mvc asp.net-mvc-2 theory
Validating for large files upon Upload

I am working with c# MVC 2 and ASP.NET. One of my forms includes a file input field which allows …

c# asp.net validation file-upload asp.net-mvc-2
How to concatenate several MvcHtmlString instances

I have some doubts about how to concatenate MvcHtmlString instances because of this information found in MSDN : MvcHtmlString Class Represents …

asp.net-mvc-2 html-helper mvchtmlstring
ASP.NET MVC Url.Action and route name value

I am using asp.net mvc 2 and create localization based on routes. my route looks like: {culture}/{controller}/{action} I …

c# asp.net-mvc asp.net-mvc-2 asp.net-mvc-routing
MSBuild DeployOnBuild=true not publishing

I have a Visual Studio 2010 MVC2 web application that I'm building via the command line using Hudson. I'd like to …

asp.net asp.net-mvc-2 msbuild publishing
An Ideal Folder Structure for .NET MVC

When I started in .NET Webforms I didn't have much trouble finding a folder structure to follow since VS offered …

asp.net-mvc asp.net-mvc-2 asp.net-mvc-3 naming-conventions conventions