Answer Posted / pavan
Yes. Multiple catch blocks may be put in a try block. See
code example below, to see multiple catch blocks being used
in C#.
class ClassA
{
public static void Main()
{
int y = 0;
try
{
val = 100/y;
Console.WriteLine("Line not executed");
}
catch(DivideByZeroException ex)
{
Console.WriteLine("DivideByZeroException" );
}
catch(Exception ex)
{
Console.WritLine("Some Exception" );
}
finally
{
Console.WriteLine("This Finally Line gets executed always");
}
Console.WriteLine("Result is {0}",val);
}
}
Read more:
http://discuss.itacumens.com/index.php?topic=17579.0#ixzz12vqW9paZ
... · ADO works with connected data. This
means ...
... when you access data, such as viewing and updating
data, it is real-time, with a ...
... being used all the time.
ADO.NET supports disconnected architecture. ...
... you access data, ADO.NET makes a copy of the data using
XML. ...
... make any requested updates. This makes ADO.NET
efficient to use for Web ...
... .
· ADO has one main object that is used to ...
... to create a new set of records. With ADO.NET, you have
various objects that ...
... relational model of your database.
· ADO allows you to create client-side ...
... only, whereas ADO.NET gives you the choice of using ...
... -side or server-side cursors. Whereas ADO allows you to
persist records in XML ...
... , ADO.NET allows you to manipulate data using. ...
Read more:
http://discuss.itacumens.com/index.php?action=search2#ixzz12w06GrN6
The DataAdapter object
plays the middleman between DataSet and database.
The DataSet represents a rich subset of the entire database,
cached on your machine without a continuous connection to
the database. The DataSet is comrised of DataTable objects
as well as Datarelation objects.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
State differences between MVC and WebAPI
Explain about ASP.NET?
What is use of Master Page in ASP.NET web pages?
What does uri mean?
How can we call webservices in Banking Applications? and where we are using it?
What are the versions of garbage collection?
Explain weak typing and strong typing.
What are the different types of cookies in asp.net?
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it
What are demand-paging and pre-paging?
Explain the difference between inline and code behind - which is best in?
In which event of page cycle is the viewstate available?
What describes a query?
What are the events that happen when a client requests an asp.net page from iis server?