C#
ScriptManager.RegisterStartupScript(this, this.GetType(), "redirect", "alert('test 9'); window.location='" + HttpRuntime.AppDomainAppPath + "/LoginPage.aspx';", true);Code
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "ScriptKey", "alert('Your session timed out.');window.location='../LoginPage.aspx'; ", true);Code
ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Your session timed out');window.location.href ='../LoginPage.aspx';", true);
Tamal Bhowmik123 pointsPosted Jun 20, 2015, 4:04 AM EDT
1 short reply
Asma Siddiqua23 pointsPosted Jun 22, 2015, 3:09 AM EDT