protected void Page_Load(object sender, EventArgs e) { if (Session["user"].ToString() == "") { Response.Redirect("~/Default.aspx"); } }
if (Session["user"] == null) { Response.Redirect("Default.aspx"); //If your page in same directory }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)