asp.net mvc 2 - ASP .Net MVC - Redirect view page from shared folder without shared controller in jquery -
i have test.aspx page containing in shared folder. dont have shared controller.
in main view page, when result data error
jquery $.ajax
means want redirect main page test.aspx page.
how redirect view page without corresponding controller & how can achieve using jquery?
window.location.href = "/path/";
is possible redirect view page without controller..
how redirect view page without corresponding controller
impossible , doesn't make sense. in asp.net mvc views cannot , shouldn't served directly.
so start declaring controller action return view , inside ajax call pointing it:
window.location.href = "somecontroller/someaction";
Comments
Post a Comment