Re: What's wring with this try-catch block?
- From: "HillBilly" <somebody@xxxxxxxxxxxxx>
- Date: Sat, 2 Aug 2008 10:50:27 -0500
<snip />
Response.Redirect works by setting something and then throwing an
exception (by default). If you look at the exception which is being
thrown, I susect you'll find it's a ThreadAbortException. Look at the
documentation for Response.Redirect for more information.
--
Jon Skeet - <skeet@xxxxxxxxx>
Web site: http://www.pobox.com/~skeet
Blog: http://www.msmvps.com/jon.skeet
C# in Depth: http://csharpindepth.com
Aha! I'll certainly study that thank you but still, what do you do to determine if the database is offline? I thought I'd convert the code into a method called before logging in or any other attempt to access the database. But if its not even online then what?
.
- Follow-Ups:
- Re: What's wring with this try-catch block?
- From: Jon Skeet [C# MVP]
- Re: What's wring with this try-catch block?
- References:
- What's wring with this try-catch block?
- From: HillBilly
- Re: What's wring with this try-catch block?
- From: rhaazy
- Re: What's wring with this try-catch block?
- From: HillBilly
- Re: What's wring with this try-catch block?
- From: Jon Skeet [C# MVP]
- What's wring with this try-catch block?
- Prev by Date: Re: Replacing Office 2007 with 2003
- Next by Date: Re: What's wring with this try-catch block?
- Previous by thread: Re: What's wring with this try-catch block?
- Next by thread: Re: What's wring with this try-catch block?
- Index(es):
Relevant Pages
|