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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -