You are using the try? catch block seen in the following
code segment, but no exceptions are ever caught by the catch
block. What is the problem?
SqlConnection cn =new sqlConnection(strSQL);
SqlDataSet ds;
try
{
cn.open(); //perform the data processing steps
??..
} catch (OleDbException e) {
?..
}
a) The exception class is wrong; it should be sqlErrors.
b) The exception class is wrong; it should be
sqlSyntaxExceptios.
c) The exception class is wrong; it should be sqlExceptions.
d) The exception class is wrong; it should be sqlExcptions.
Answers were Sorted based on User's Feedback
what are the server controls used in sitepath navigation?
how to write html code with ssl
What is a bubbled event?
What are the new web part controls in asp.net 2.0 ?
What is active web pages?
• What are HttpHandlers? • What are HttpModules?
Which is better viewstate or session?
Interface and Abstract class, inheritance, abstraction with examples. Polymorphism (difference betn overloading and overriding
Difference between .NET and previous version?
Differentiate between client-side and server-side validations in web pages.
What?s the difference between Response.Write() andResponse.Output.Write()?
How do you manage session in ASP and ASP.NET ?
2 Answers Cap Gemini, Microsoft,