If I call RenderAction on action method which view has Html.BeginForm() with no params my form action folows the parent url.
If I add any param (route values, action, etc) , form action attribute is replaced with MyChildContorller's controller name and action.
How to use RenderAction without affecting parent url?
Html.BeginForm()
simply putsRequest.Url.ToString()
in the formaction
parameter. When you useHtml.BeginForm("actionName", "controllerName")
routing will be used to calculate the url.