Monday, April 18, 2022

Logout page in ASP.NET Logout.aspx.cs

 using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.HtmlControls;


public partial class View_Logout : System.Web.UI.Page

{

    protected void Page_Load(object sender, EventArgs e)

    {

       

    }


    protected void Page_PreInit(object sender, EventArgs e)

    {

        Response.Redirect(Page.ResolveUrl(@"~/Login.aspx"));

    }

}

No comments:

Post a Comment