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 / nithya
C
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are the components of ado.net?
What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?
What are the types of caching in asp.net?
What threading model used in asp and asp.net?
Which object encapsulates state or data of a user?
What are the different types of validation controls in asp.net?
What is clickid?
Can the dictionary object be created in client?s scope ?
Which browsers support the xmlhttprequest object?
What is webresource axd?
Explain the role of global.asax?
Who is using asp.net?
We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?
Explain the advantages of asp.net.