Close Page

  • Thread starter Thread starter - Steve -
  • Start date Start date
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
 
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.
 
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>");
}
 
Back
Top