Visual Studio .NET - How to close the form?
Asked By Kannabiran . on 08-Mar-07 10:10 AM
In windows me.close()
but in web???
Can't do it server side...
Sean Patterson replied to Kannabiran . on 08-Mar-07 11:31 AM
This is the classic misunderstanding
Peter Bromberg replied to Kannabiran . on 08-Mar-07 01:01 PM
between what represents "server side" and what is "client side".
This will "close" a browser window:
You can also use the OnClientClick property
mv ark replied to Kannabiran . on 09-Mar-07 12:16 AM
You are probably concerned about the alert - "The web page you are viewing is trying to close the window." that needs user confirmation when you try to close the parent page.
The fact is that owing to security reasons, you cannot close windows you don't open yourself and this is the documented behaviour of window.close()
asp.net form close
P c replied to Kannabiran . on 10-Sep-07 02:48 PM
hi u can use onle line code:
Foyzul Karim replied to P c on 05-Oct-10 05:48 AM
I think the syntax would be