How RedirectToAction which returna partial view can return a full view?
How do I get the PartialView to show the whole form and not just the PartialView using a RedirectToAction that goes to an action that which returns a PartialView?
You can't.
If you redirect to an action returning a PartialView
how in the name of do you expect it to return a full view?
Redirect to an action returning a View
.
Nate Pet
Updated on June 04, 2022Comments
-
Nate Pet almost 2 years
I am doing a redirect to an action which in turn displays the content within a
PartialView
return PartialView(data);
I do the Redirect as such:
return RedirectToAction("SpkAction", new { id = ID});
The redirect works fine and I do get to the
SpkAction
corrrectly. But when the PartialView is rendered it ONLY shows thePartialView
and not the whole form.How do I get the
PartialView
to show the whole form and not just thePartialView
using aRedirectToAction
that goes to an action that which returns aPartialView
? -
gdoron is supporting Monica almost 12 years
@Html.Action
will add the view when it was called, you can do what you're trying to do, or at least what it looks like you want to do. -
dom almost 12 yearsFrom what I understand he is trying to include a child action within another action, but I could be wrong.