Closing sub window from parent window

S

Satya

I have a web page(ASPX) that causes a new window(ASPX) to be created.
It looks
something like this:


StringBuilder scriptBlock = new StringBuilder();
scriptBlock.Append("<a
id='viewEBillDocumentLink' name='viewEBillDocumentLink' href='");

scriptBlock.Append(UrlConstants.ViewEBillDocUrl);
scriptBlock.Append("' target='_blank'></a>\n");

scriptBlock.Append("<script
language='javascript'>\n");
scriptBlock.Append("<!--\n");
scriptBlock.Append(" var link =
document.getElementById('viewEBillDocumentLink');\n");
scriptBlock.Append(" link.click();\n");
scriptBlock.Append("\n");
scriptBlock.Append("// -->\n");
scriptBlock.Append("</script>\n");
Page.RegisterStartupScript("ViewEBillDocument",
scriptBlock.ToString());




The above code works fine but When the user eventually logs out of the
web application from the "main" browser window, I want to close the sub
window created above.
see if you can give me a any light on it.

Thanks,
Satya.
 

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

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top