How to redirect a full page, not just a partial change in vision?

I have a situation where I am on a controller called a client and I have an account method that I called using the client number as an identifier.

Then I have ActionLinkone that returns me to the Arrears task with the task form in a partial representation of the arrears index. I save when loading Request.ServerVariables["http_referer"], so I can use this to return.

When I use Return Redirect()with the referee, it redirects, but loads in the partial section, as it was loaded in iframe.

Can someone tell me how to redirect the whole page, not just a partial one?

0
source share
2 answers

Try redirecting to a specific action that will return the view you want

return RedirectToAction("Index", model);
+1
source

using the following return to return an ActionResult from an AJAX call and redirect the entire page

    return JavaScript("window.location = 'your specified url'");
0
source

Source: https://habr.com/ru/post/1648472/


All Articles