I am trying to create a logout button on my application. which ends the users session, I currently have an HTML button with a runat=server since I have it doing the following actions 'onclick':
myownclass.unsetUserInfo();//my own function
Session.Abandon();
Server.Transfer("~/Home/LoggedOut.aspx");
Is it possible to also add a pop-up message box when the user clicks this button? I dont know how to add a box before it calls the serverside function.
myownclass.unsetUserInfo();//my own function
Session.Abandon();
Server.Transfer("~/Home/LoggedOut.aspx");
Is it possible to also add a pop-up message box when the user clicks this button? I dont know how to add a box before it calls the serverside function.