473,503 Members | 12,516 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how can close web form in c# ?

4 New Member
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 10598
r035198x
13,262 MVP
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
NETBehnamGhanbari
4 New Member
ok and thanks ...i did not know....
Jul 2 '07 #3
nateraaaa
663 Recognized Expert Contributor
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
NETBehnamGhanbari
4 New Member
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
NETBehnamGhanbari
4 New Member
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 Recognized Expert Specialist
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

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

Similar topics

6
2727
by: marcelf3 | last post by:
Hello.. This page opens a window with some information, but everytime the user changes a field in the parent window, the child window needs to be closed. These 2 functions were supposed to do the...
1
2085
by: Jules Winfield | last post by:
My WinForms application can have any number of top level forms open at a given time. If the user selects File|Exit, all of the forms are closed. The loop to close the forms looks something like this:...
2
4982
by: Chien Lau | last post by:
Hi, At a certain point in my application, I have access to a Form object. I want to close that form: form.Close(); There are any number of reasons why this form might not close. A common...
7
2505
by: Alice | last post by:
Hi, In my program, the user can navigate to many different forms. When they go to the next form, I want the form they have left to close. However, the forms aren't closing. Can anyone tell me...
5
11054
by: Stan Sainte-Rose | last post by:
Hi, Which event is called when the user click on the close window icon (X) ? I want, when he clicks on this icon, to display a message before closing the form. If he replys by No, I don't want to...
6
6640
by: Tom | last post by:
Is there ANY easy way to close a MDI Child form in the middle of it's load? For instance, during the Load event I find a need to close the form (for whatever reason - maybe the user isn't ready for...
5
7426
by: AP | last post by:
IS there a way to run a procedure if the users close access directly rather than closing a menu screen that I have built? There is an event that works on close for this form, but it doesnt seem to...
6
6982
by: scott | last post by:
I guess this is a simple one but I can't seem to get it to work. I want to refresh an open form "onClose" of another. I have a Close button on a form which has User Details on it. If I update...
3
4380
by: rdemyan via AccessMonster.com | last post by:
I need help with code to close two forms at the same time, FormA and FormB. I need code that can be used from either form and needs to work with both a 'Close' button on each form as well as if the...
1
3850
by: dan.c.roth | last post by:
oForm.Close() vs this.Close() in a modal dialog. oFrom.Close() calls Form.Dispose() but this.Close() ,say in the click event of the Form, does not. I can think of the reason for this but is...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.