I wonder how to catch error in the ASP.NET?
1. I have web form and when I click Add button I call Function Insert from my Class1
2. When function Insert has an error how to pass that error to my web form and where to show this error?
3. How to catch error code and handle error, for instance in my VB/SQL server project code I have Case 2627 “Record must have unique value”. How to do this in ASP.NET 2.0?
I am new in ASP.NET so I am very confused with this.
Thanks in advance
1. I have web form and when I click Add button I call Function Insert from my Class1
2. When function Insert has an error how to pass that error to my web form and where to show this error?
3. How to catch error code and handle error, for instance in my VB/SQL server project code I have Case 2627 “Record must have unique value”. How to do this in ASP.NET 2.0?
I am new in ASP.NET so I am very confused with this.
Thanks in advance