Hi and TIA:
I am trying to exit an application from a menu link.
I have a link in my menu to "Exit Program"
that link takes the user an aspx page with a button.
when the button is clicked the following code is executed
Code:
protected void Button1_Click(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(typeof(Page), "closePage", "<script type='text/JavaScript'> window.close();</script>");
}
But this "exit page" merely reloads itself.Have tried several online solutions to no avail.
Suggestions on how to close the browser page/end this app would be greatly appreciated.
thanks,
Cliff