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
How you can access the properties and controls of master pages from content pages?
What is use of <% %> in asp.net?
how to include timer or counting time to display next page in asp.net
Elaborate differentiation between ViewState and SessionState?
What is redirecting behavior?
What events will occur when a page is loaded?
What is asp net application object?
How Web Service help? What is the difference between Remoting & Web Servcies?
What are different types of directives in .NET ?
What is session and cookies in asp.net?
How to prevent client side validation from the ASP.NET validation controls?
Less than one page, how many windows will you be able to maintain?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)