Top "Asp.net-mvc-2" questions

ASP.

"The Id field is required" validation message on Create; Id not set to [Required]

This is happening when I try to create the entity using a Create style action in Asp.Net MVC 2. The …

asp.net-mvc asp.net-mvc-2 data-annotations
Html.ActionLink with a specified HTML id?

I'd like to give the like generated with an Html.ActionLink an HTML id so I can change the CSS …

css asp.net-mvc asp.net-mvc-2 html-helper actionlink
Best practice for ASP.NET MVC resource files

What are the best usage of the following resource files. Properties → Resources (Phil used this resource for localization in DataAnnotation) …

asp.net-mvc asp.net-mvc-2 localization resx
Can't run ASP.NET MVC 2 web app on IIS 7.5

I'm trying to run an ASP.NET MVC 2 web application under IIS on Windows 7, but I get a 403.14 error. Here …

visual-studio-2010 visual-studio iis asp.net-mvc-2 iis-7.5
How do I use VaryByParam with multiple parameters?

In ASP.NET MVC2 I use OutputCache and the VaryByParam attribute. I got it working fine with a single parameter, …

asp.net-mvc-2 outputcache
RedirectToAction not working after successful jquery ajax post?

The following does not redirect my page: Here is the MVC code: [HttpPost] public ActionResult GoHome() { return RedirectToAction("Index", "Home"); } …

c# jquery post asp.net-mvc-2 jquery-post
How to call function on timer ASP.NET MVC

I need to call function on timer (lets say onTickTack() function) and reload some info in ASP.NET MVC project. …

c# asp.net asp.net-mvc asp.net-mvc-2 asp.net-ajax
What is the difference (if any) between Html.Partial(view, model) and Html.RenderPartial(view,model) in MVC2?

Other than the type it returns and the fact that you call it differently of course <% Html.RenderPartial(...); %> &…

asp.net asp.net-mvc-2
How to get the HTML id generated by asp.net MVC EditorFor

I use the HTML Helpers to render my fields: <%=Html.EditorFor(m => m.User.Surname)%> and the …

asp.net-mvc asp.net-mvc-2
NuGet exited with code -1 — Build failing as a result

I have installed dotless via Package Manager in VS2012 in to an existing mixed C# solution (Class libraries and MVC2 …

c# asp.net-mvc-2 build nuget dotless