You can stop a person from using your app, but you cannot shut down their
browser without their permission. I would aim for logic that sends them to a
"this app is not working because there is no database" friendly error page.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Gene Brumm" <Ge********@Thomson.com> wrote in message
news:0a****************************@phx.gbl...
I have an ASP.NET web application that checks for a
database in Page_Load(). If the database is not present I
want to exit the application.
I have tried using window.close() which does close the
app but prompts the user if he/she wants to close the
browser. I don't want the prompt since the app must close.
How can I do this?