LogOut Button in asp.net C#
how to create logout Button
Code for maste page
protected void lnk_Click(object sender, EventArgs e)
Code for maste page
how to create logout Button
code for page load event
protected
void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
}
Code for logout Button Click EventCode for maste page
protected void lnk_Click(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("~/login.aspx");
}
public
partial class InMaster : System.Web.UI.MasterPage
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
}
protected void lnk_Click(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("~/login.aspx");
}
}
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Cache.SetCacheability(HttpCacheability.NoCache);
}
protected void lnk_Click(object sender, EventArgs e)
{
Session.Abandon();
Response.Redirect("~/login.aspx");
}
}
#SradhaWebCreations
Contact : +91-9040573923, +91-7008182025
http://sradhawebcreations.com/
http://sradhawebcreations.blogspot.in/
https://facebook.com/sradhawebcreations
https://www.facebook.com/Sradhawebeducation/