Top "Asp.net-mvc-4" questions

ASP.

Error :Request header field Content-Type is not allowed by Access-Control-Allow-Headers

I created an mvc4 web api project using vS2012. I used following tutorial to solve the Cross-Origin Resource Sharing, "http://…

jquery asp.net-mvc-4 asp.net-web-api oauth-2.0 cors
Display string as html in asp.net mvc view

I have a controller which generate string containing html markups.Now when I am displaying it on views, it is …

c# asp.net asp.net-mvc asp.net-mvc-4
How do I set a cookie on HttpClient's HttpRequestMessage

I am trying to use the web api's HttpClient to do a post to an endpoint that requires login in …

c# rest asp.net-mvc-4 asp.net-web-api
Deserialize JSON to Array or List with HTTPClient .ReadAsAsync using .NET 4.0 Task pattern

I'm trying to deserialize the JSON returned from http://api.usa.gov/jobs/search.json?query=nursing+jobs using the .…

c# json asp.net-mvc-4 task-parallel-library dotnet-httpclient
Where can I find a NuGet package for upgrading to System.Web.Http v5.0.0.0?

Just upgraded an ASP.NET MVC4 project to use Unity.WebApi version 5.0.0.0 and it requires System.Web.Http v 5.0.0.0 as …

c# .net asp.net-mvc-4 nuget asp.net-web-api2
Razor View throwing "The name 'model' does not exist in the current context"

After significant refactoring in my MVC 4 application, and Razor shows this error while debugging Views: The name 'model' does not …

asp.net-mvc asp.net-mvc-4 razor
MVC4 DataType.Date EditorFor won't display date value in Chrome, fine in Internet Explorer

I'm using the DataType.Date attribute on my model and an EditorFor in my view. This is working fine in …

asp.net-mvc asp.net-mvc-4 editorfor
Why use @Scripts.Render("~/bundles/jquery")

How does @Scripts.Render("~/bundles/jquery") differ from just referencing the script from html like this <script src="~/bundles/…

asp.net-mvc-4 asp.net-optimization
Styles.Render in MVC4

In a .NET MVC4 project how does @Styles.Render works? I mean, in @Styles.Render("~/Content/css") which file is …

c# asp.net-mvc razor asp.net-mvc-4