ADO.NET Connectivity Error display

Posted by Raj.Trivedi under ASP.NET on 5/6/2013 | Points: 10 | Views : 894 | Status : [Member] [MVP] | Replies : 1
Hello Team,

How we can generate custom error messages so that the user can understand what is the error.

Eg :-

If we are running the application and the application is not connected to the data source it gives SQL Error which is very long.

What i am trying to do is if the application fails to connect to data source can we show an error message which says

"Data base not Connected or Server not Connected please check connections"

or any custom message for that purpose.

"Sharing is Caring"
Please mark as answer if your Query is resolved


Posted by: Valley on: 5/7/2013 [Member] Starter | Points: 25


Raj.Trivedi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response