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.
use
EDIT:
if it is created in codebehind, then use