Close Page

C

Curt_C [MVP]

clientside code
windows.close()

Mind you they will get a warning/notice.

You can't do any window manipulation with SERVER side code like asp/asp.net
 
K

Kevin Spencer

You can avoid the warning:

window.opener = self;
window.close();

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
S

- Steve -

Shouldn't this work, causing the browser to close once it
progress.Percentage reaches 100.

Page_Load
{
UpdateProgress();
}

UpdateProgress()
{
if(progress.Percentage < 100)
Page.Response.Write("Meta HTTP-EQUIV=Refresh CONTENT=3>");

else
Page.RegisterStartupScript("OnLoad",
"<script language=javascript>" +
"windows.close()" +
"</script>");
}
 

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
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top