Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iexplore control requieres condirmation to close

Status
Not open for further replies.

almoes

Programmer
Jan 8, 2003
291
US
Hi,

I use the Process class to open a URL. If this new iexplore window is closed by a control of the web page, the Internet explorer opens a dialog box saying 'The web page you are viewing is trying to close the window. Do you want to close this window? YES/NO' I tried to close the process upon exit of the window but the message box is fired before. Any ideas how to release the control of the process once it's started? thanks!

cheers,
alej
 
Is this in asp.net??

Or a windows forms application??

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
Then I think you can't do a thing about it.

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
ok, thanks! and is there another way of opening an ie window?

cheers,
alej
 
you could add a webbrowser control to you form. But still I doubt that you could catch the user clicking the close button.

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
In fact I dont want to catch the user clicking the close button. The page is closed by the code running in the web page and I want that the Internet explorer doesn't notify me about it. I want that the web page runs independant from my code.
 
So why do you even need a browser?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Because when I call the URL, a series of windows for user interaction are openned. Could I do that without invoking the browser?
 
a series of windows for user interaction are openned
Can you explain further?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
The browser-close notification is there to prevent malicious web sites from closing your browser without permission.

As far as I know, you can't disable that behavior, but there might be something in the group-policy editor, if this is a corporate application.

Chip H.


____________________________________________________________________
Donate to Katrina relief:
If you want to get the best response to a question, please read FAQ222-2244 first
 
Sorry, I will explain in depth.
I have a simple form with a button. Upon a click event I want to execute a URL. This URL opens a window for the user to log in and if authentication is succesful it starts a call. So basically I just want to start the URL process and not control it anymore, because as chiph mentions I am stuck with security issues.
 
In that case you don't need a browser. Simply get the login details from the user and use a httpWebRequest to call the page, pass in the users details and then start the "call".


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
the point is that it's the web request the one starting the call.
If the user info is stored in a cookie, I could also pass the cookie info in the web request?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top