By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,883 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,883 IT Pros & Developers. It's quick & easy.

Closing windows

P: n/a
How to close browser windows from code

Nov 21 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
"Nikolay Petrov" <jo******@mail.bg> schrieb:
How to close browser windows from code


Did your application start the browser?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

P: n/a
Take a look at my (crouchie1998's) post here:

http://msdn.microsoft.com/newsgroups...2-ba2cfe48b93f
Nov 21 '05 #3

P: n/a
See my (crouchie1998) post here:

http://msdn.microsoft.com/newsgroups...2-ba2cfe48b93f
"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:11*********************@l41g2000cwc.googlegro ups.com...
How to close browser windows from code

Nov 21 '05 #4

P: n/a
"Crouchie1998" <Cr**********@discussions.microsoft.com> schrieb:
Take a look at my (crouchie1998's) post here:

http://msdn.microsoft.com/newsgroups...2-ba2cfe48b93f


Well, that works :-), but there might be an easier solution if IE was
started in the same application.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

P: n/a
Yeah, of course there could be an easier way because you can get the process
handle... & then close it that way.

Another way is to get all the IE processes & iterate through them closing
them one at a time, but that if the user wants them all closed
Nov 21 '05 #6

P: n/a
I use an JavaScript in my ASP .NET page to open new page, which
displays status for a long running operation.
What I need is a way to close that window, after the operation has
finnished.
So my question maybe must be: Can an ASP .NET page close it's browser
window?

Nov 21 '05 #7

P: n/a
Nicolay
So my question maybe must be: Can an ASP .NET page close it's browser
window?


As one I thought that is prevented by XP Sp2. Have a look what it all does
for IE, that will enlighten you in my opinion.

http://msdn.microsoft.com/library/de...psp2compat.asp

I hope this helps,

Cor
Nov 21 '05 #8

P: n/a
"Nikolay Petrov" <jo******@mail.bg> schrieb:
I use an JavaScript in my ASP .NET page to open new page, which
displays status for a long running operation.
What I need is a way to close that window, after the operation has
finnished.
So my question maybe must be: Can an ASP .NET page close it's browser
window?


\\\
window.close();
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.