Hi metta0_3,
>>...I need a try, catch in case of a failed connection.
Just put inside try/catch block in the preferable block that may return any error in the end.
eg:
protected void GetVendorsInfo_SelectedInd
{
try{
//....your existing applied code...
}catch(Exception e){
Response.write("error returned: " + e.ToString())
}
}
Check this MSDN site for better understanding of try/catch block practices:
http://msdn.microsoft.com/
Main Topics
Browse All Topics





by: dhansmaniPosted on 2009-10-27 at 00:27:07ID: 25669792
here i added code
Select allOpen in new window