Quantcast
Channel: Why are Redirect Results not allowed in Child Actions in Asp.net MVC 2 - Stack Overflow
Browsing all 8 articles
Browse latest View live

Answer by Jonathan for Why are Redirect Results not allowed in Child Actions...

In my unusual case, I had a custom AuthorizeAttribute attached to my controllers which was attempting to redirect on a child action, which is (as mentioned above) not allowed.To resolve the issue, I...

View Article


Answer by ybigus for Why are Redirect Results not allowed in Child Actions in...

Try to use something like this in Child Action:ControllerContext.HttpContext.Response.Redirect(ControllerContext.HttpContext.Request.Url.ToString());

View Article

Answer by Vladimir for Why are Redirect Results not allowed in Child Actions...

My solution.Action method:return View("Redirect", model);View:<script type="text/javascript" language="javascript"> document.location = '<%: Url.Action("Index", "Album", new { id = Model.Id })...

View Article

Answer by gandil for Why are Redirect Results not allowed in Child Actions in...

Sometimes this error occured when you try to render an action of base action result.Example:ActionResult X Return ViewView X RenderAction YActionResult Y // Bla bla return View // else return...

View Article

Answer by Jason Barile for Why are Redirect Results not allowed in Child...

In my case, the form being rendered is a "configure" panel on an extension to a website I'm building. I'd like the extension's own controller to be able to handle the form processing and then redirect...

View Article


Answer by aaimnr for Why are Redirect Results not allowed in Child Actions in...

In that case just point the partial view form's submit url to action that was the target of your problematic redirection and let it perform itself redirection to its GET version.

View Article

Answer by Levi for Why are Redirect Results not allowed in Child Actions in...

The limitation exists because MVC has already started rendering a view to the client. The effect of redirecting from this point is undefined. It could work perfectly, it could continue rendering the...

View Article

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 after the forms in them have been processed.Now that I upgraded to Asp.Net MVC 2...

View Article

Browsing all 8 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>