Re : how to use multile try catch block.

Ashutosh Dhok replied to sudhakar subramaniyan at 05-Jul-08 06:22

Hi Sudhakar,

 Check this code for multiple catch block...

try

{

   // Your code will be here....

}

catch(SqlException ex)

{

         MessageBox.Show(ex.Message);

}

catch(IOException ex)

{

          MessageBox.Show(ex.Message);

}

catch(Exception ex)

{

           MessageBox.Show(ex.Message);

}

catch(Exception ex)

{

          MessageBox.Show(ex.Message);
}

Regards
Ashutosh



Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  how to use multiple try catch block - sudhakar subramaniyan  05-Jul-08 05:19 5:19:23 AM
      try this... - Vasanthakumar D  05-Jul-08 05:31 5:31:34 AM
      See this - Sujit Patil  05-Jul-08 05:28 5:28:01 AM
      Multiple Try Catch Block example - Sanjay Verma  05-Jul-08 05:35 5:35:57 AM
      Re : how to use multile try catch block. - Ashutosh Dhok  05-Jul-08 06:22 6:22:07 AM
      Re : how to use multile try catch block. - Ashutosh Dhok  05-Jul-08 06:23 6:23:07 AM
      ans - Umapathy Kaliaperumal  05-Jul-08 06:34 6:34:53 AM
      Multiple try catch or nested try catch: - Chirag Bhavsar  05-Jul-08 08:52 8:52:08 AM
      reply - alice johnson  05-Jul-08 01:17 1:17:24 PM
View Posts

promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   


"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class