Redirect from asp.net page to another using javascript function -


i know if want redirect asp.net page anther in code behind need write-

response.redirect("somepage.aspx"); 

my question if possible same thing in javascript function, , if how?

thank you!

this should do:

window.location = "somepage.aspx"; 

or

window.location.href="somepage.aspx"; 

or

window.location.assign("somepage.aspx"); 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -