How to close the window or Exit from asp.net application

Posted by Vanchi050585 under Regular Expressions on 8/18/2010 | Points: 10 | Views : 24950 | Status : [Member] | Replies : 1
hi friends,

How to close the window or Exit from asp.net application.
if i click Exit button , then the application will be close. pls anybody send the code.

Thanks

Thanks
tvn



Responses

Posted by: T.saravanan on: 8/18/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi Vanchi050585,

Just call OnClientClick,

<asp:Button ID="Button1", runat="server" Text="Exit" OnClientClick="window.close();"/>


Thanks :)
T.Saravanan

Thanks,
T.Saravanan

Vanchi050585, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response