Answer Posted / minhajul islam
using try block we can trap the error as follows
try
{
//Datanase coding
}
catch(SQLException e1)
{
//Here you will get SQL Error message in e1 instance
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is sql data source control in asp.net?
What are the two properties that are common on every validation control?
Explain about asp.net caching?
What is routing in MVC?
What are validator? How do you disable them?
What is difference between abstract class and an interface?
What is the part of url?
Explain repository pattern in asp.net mvc? : asp.net mvc
What is asp.net caching?
How to find last error which occurred?
How to you can limit Access to Web API to Specific HTTP Verb?
What is a web server? What are the load limits in it?
In which event of page cycle is the viewstate available?
Which is faster viewdata or viewbag?
What is a 404 redirect?