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.
Answer Posted / js_m
c
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Define cookie.
What is syntax code to send email from an asp.net application?
Explain what the contents of cookie?
What is cache in asp net?
How to sign out from forms authentication?
What is the difference between web config and machine config files?
What is gridview in asp.net?
Explain security types in asp.net?
What is the difference between the response.write() and response.output.write() methods?
Explain MVC model binders?
What is application state?
What is session state server?
What is the Difference between MVC And MVP design pattrens
Explain the basic functionality of garbage collector?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know