ASP.NET MVC 4 - RedirectToAction not working in Explorer after deploying to IIS 7 -
i'm having issue number of redirects in intranet application i'm building. built using asp.net mvc4.
when running application locally after debugging in visual studio, works fine in browsers, deploying iis 7 on our development server , running remotely there causes of redirecttoaction statements stop working in internet explorer.
the first of following statements nothing, refreshes current page, while second redirects properly:
if (command == "completefollow") { return redirecttoaction("createfollowup", "echo", new { id = resolution.complaint_id }); } else { return redirecttoaction("details", "echo", new { id = resolution.complaint_id }); }
both pages exist , redirects working in both chrome , firefox, not internet explorer.
does know why might happening , how can fixed?
solution found:
it internet explorer compatibility mode issue.
it fixed adding:
<meta http-equiv="x-ua-compatible" content="ie=edge" />
to head section of _layout.cshtml
Comments
Post a Comment