How can I change the page in the browser after the end of the controller? I tried this:
HTML / JS Code:
& lt; Form & gt; & Lt; Button type = "submit" onclick = "abc ()" & gt; 123 & lt; / Button & gt; & Lt; / Form & gt; & Lt; Script & gt; Function ABC () {$ .post ("/", "abc", function () {}); } & Lt; / Script & gt; ASP.NET MVC Code: [HTTPPOST] Public ActionRashout Index (Dynamic Response) {Return Redirect (Request URLRerfer.tostring) + "/ Home / OtherPage "); }
What am I doing?
[hppost] public action result index (dynamic response) {return redirection toauction ("other Page "," home "); }
Comments
Post a Comment