How to close a IE window

E

EMW

Hi,

In my ASPX program in a OnClick event another IE window is opened to show
the user some information.
I have smartnavigation enabled to reduce the flickering and now I get an
error.

This is what happens.
The user clicks on a linkbutton in the datagrid.
The information connected to this button is then saved in a xml file and via
javascript another aspx page is opened in a separate window. The code behind
for this page read the xml and shows the data. So far so good.
The ie window is opened modeless because otherwise the main page does not
continue its refresh before the second window is closed.

Then the user clicks on a different window. Now is goes wrong. I get a
errormessage in the smartnavigation code.

My guess is I will have to close the second window first before I can open a
new one.
How can I do this. I gave the page a specific title, so maybe there is a way
to 'find' this title and a close command can be given?

Also do I have to remove the code that wrote the javascript code in the page
for opening that second page?

rg,
Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,832
Latest member
UtaHetrick

Latest Threads

Top