If you're using ASP.NET 2.0, all you have to do is place
a file named "app_offline.htm" in your application root directory.
As soon as you do that, ASP.NET 2.0 will shut-down the application,
unload the application domain, and stop processing any new requests
for that application.
ASP.NET will then respond to all requests for the application's
by returning the content of the app_offline.htm file.
If you're using ASP.NET 1.1, what I'd do is unload the application
( in the IIS Manager ), and eliminate the application;s virtual directory.
Then, create a new virtual directory with a default.aspx file
with your "Under Cobstruction" information.
When you're done, dump the under construction app
and reinstate your standard application.
If you have everything prepared, it shgouldn't take
you more than 30 seconds to make the switch.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================
"Stimp" <re*@spumco.com> wrote in message
news:sl****************@carbon.redbrick.dcu.ie...
I need to take my website offline for an hour or so while I perform some
maintenance... is it possible to create a 'catch-all' redirect to a
temporary page (i.e. something in Web.config or global.asax.vb) ?
People access my site through several different pages, so I couldn't put
a redirect on the homepage, and taking my server offline is out the
question.
Thanks,
Peter
--
"I hear ma train a comin'
... hear freedom comin"