Re: What's wring with this try-catch block?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



<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?

.



Relevant Pages

  • Re: Comparing Lisp conditions to Java Exceptions
    ... to both Lisp and Ruby. ... some special value or by throwing an exception). ... from database related errors caused by ... * Taking sbcl as an example, I have uncovered no documentation as to what conditions ...
    (comp.lang.lisp)
  • Re: Enterprise Library and PostgreSQL (Npgsql)
    ... I found the database provider code at ... Catch ex As Exception ... If the connection string is invalid or the database server is ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)
  • Object reference not set to an instance of an object.
    ... Object reference not set to an instance of an object. ... An unhandled exception occurred during the execution of the ... Dim myJobRequest As New skillsDB.jobRequest ... Session= "The skills database has been updated ...
    (microsoft.public.dotnet.general)
  • Object reference not set to an instance of an object.
    ... ASP.NET that uses web service for SQL Server 2000 DB access. ... Exception Details: System.NullReferenceException: Object reference not ... Dim myJobRequest As New skillsDB.jobRequest ... Session= "The skills database has been updated ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: SqlCeConnection
    ... data from the database using either a DataReader, DataSet, and binding the ... error but the Exception object does not contain a message to display. ... private void CloseConnection() ... SqlCeCommand sqlCommand = null; ...
    (microsoft.public.sqlserver.ce)