117
rated 0 times
[
124]
[
7]
/ answers: 1 / hits: 30131
/ 13 Years ago, mon, july 11, 2011, 12:00:00
What is the equivalent code of Response.Redirect(~/Account/Login.aspx);
in javascript?
I tried : window.location=~/Account/Login.aspx
but the ~
is not accepted in javascript. so, what is the alternative code?
Note: the javascript script is made in the server side in the Page_Load
method by using ClientScript.RegisterClientScriptBlock
.
More From » asp.net