lapucca
asked on
How can I close my web page application in asp C# when a button is clicked?
Hi, I want to close and exit my web page when a button is close. How can I do this? Thanks.
protected void btnExit_Click(object sender, EventArgs e)
{
}
protected void btnExit_Click(object sender, EventArgs e)
{
}
What do you mean by "exit"? Do you mean to close the window? Or the browser completely? Or do you want to restart the web site on IIS? Or just show the entry page of your web site?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Right, what you say makes a lot of sense. I have been a windows developer and new to web development. Of course, users would close the browser themself or change url to anther web page or we site. I guess there is never any need for me to worry about closing anying page like I would in windows application. Thank you.
you're welcome. And indeed, a web application always continues to run. Though matters of "starting" and "stopping" are done by means of logging in and out of the web application.