} else { ScriptManager.RegisterStartupScript(this, this.GetType(), "alertmessage", "javascript:alert('You cannot access this page yet. Please Log in or Register')", true); Response.BufferOutput = true; Response.Redirect("Account/Login.aspx", true); } }
else { Response.Write("alert('You cannot access this page yet. Please Log in or Register');"); Response.BufferOutput = true; Response.Redirect("Account/Login.aspx", true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)