469,352 Members | 2,214 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

how can close web form in c# ?

hi all..
i wanna close web form in c# (.NET) without any message..
for example when I click on button , web form close.
i dont like use window.close();
i wanna close my webform and dont message..
help me please...
Jul 2 '07 #1
6 10410
r035198x
13,262 8TB
hi all..
i wanna close web form in c# (.NET) without any message..
for example when I click on button , web form close.
i dont like use window.close();
i wanna close my webform and dont message..
help me please...
my email is<removed by admin>
Please don't post emails in the public forums (it's against site rules).
Jul 2 '07 #2
ok and thanks ...i did not know....
Jul 2 '07 #3
nateraaaa
663 Expert 512MB
hi all..
i wanna close web form in c# (.NET) without any message..
for example when I click on button , web form close.
i dont like use window.close();
i wanna close my webform and dont message..
help me please...
I don't know what you have against using javascript's window.close(). There is a 3rd party dll that you could use to close a windown in IE6 and IE7 called WatiN. This is a free open source tool that can be downloaded at SourceForge.net. Give this a try if you want.

Nathan
Jul 2 '07 #4
when i use window.close(); in java script : i see this message in IE6 --->>

>> The Web Page You Are viewing is trying to close the window.
do you want to close this window ?
yes No
<<


i dont like see this message..
Jul 2 '07 #5
hi all..
i found solution...
i must use this code in my java script....

window.opener = self;
window.close();
Jul 3 '07 #6
kenobewan
4,871 Expert 4TB
The window.close() method checks to see if the opener property of
the window is null (meaning that it was not spawned by another browser
window). If you set the opener property to the window itself, it closes
without a prompt.
Jul 3 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Jules Winfield | last post: by
2 posts views Thread by Chien Lau | last post: by
7 posts views Thread by Alice | last post: by
5 posts views Thread by Stan Sainte-Rose | last post: by
6 posts views Thread by scott | last post: by
3 posts views Thread by rdemyan via AccessMonster.com | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.