Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
C# MVC fix for IE behaving badly with JSON
SUBMITTED BY:
Guest
DATE:
April 25, 2013, 9:59 a.m.
FORMAT:
Text only
SIZE:
315 Bytes
Raw
Download
Tweet
HITS:
1110
Go to comments
Report
protected new JsonResult Json(object data)
{
if (Request != null && !Request.AcceptTypes.Contains("application/json"))
{
return base.Json(data, "text/plain");
}
return base.Json(data);
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus