Set - 2

Question 31 :

How many types of exception handlers are there in .NET?

Answer :

Answer 1:
MSDN>gt; "How the Runtime Manages Exceptions"
The exception information table represents four types of exception handlers for protected blocks:
A finally handler that executes whenever the block exits, whether that occurs by normal control flow or by an unhandled exception.
A fault handler that must execute if an exception occurs, but does not execute on completion of normal control flow.
A type-filtered handler that handles any exception of a specified class or any of its derived classes.
A user-filtered handler that runs user-specified code to determine whether the exception should be handled by the associated handler or should be passed to the next protected block.

Answer 2:
1. Unstructured Exception Handling
2. Structured Exception Handling

Question 32 :

Difference between Panel and GroupBox classes?

Answer :

Answer 1:
Panel and Group box both can used as container for other controls like radio buttons and check box.
the difference in panel and group box are Panel
1) In case of panel captions cannot be displayed
2) Can have scroll bars.

Group box
1) Captions can be displayed.
2) Cannot have a scroll bar

Answer 2:
Panel is scrollable. In panel you can't set caption like Group box.

Question 33 :

What is Response object? How is it related to ASP's Response object?
Response object allows the server to communicate with the client(browser). It is useful for displaying information to the user (or) redirecting the client.
Eg: Response.Write("Hello World")

Answer :

Question 34 :

hat is IIS? Have you used it?

Answer :

IIS - Internet Information Server
IIS is used to access the ASP.Net web applications
Yes, I used in ASP.NET web applications.

Question 35 :

Main differences between ASP and ASP.NET.

Answer :

Answer 1:
1. ASP: Code is Interpreted
ASP.NET: Code is Compiled

2. ASP: Business Logic and Presentation Logic are in a single file
ASP.NET: Business Logic and Presentation Logic are in separate files (.cs or .vb) and (.aspx) respectively.
3. ASP: No Web Server Controls
ASP.NET: Web Server Controls supported by strong .NET Framework
4. ASP: No RAD in Classic ASP
ASP.NET: Supports RAD

Answer 2:
1.Asp is interpreted is compiled which is faster than asp.
2 maintains its own CLR and is managed as it runs by CLR
Where as asp is unmanaged
3 We can mainatin sessions in state server and sql server which is Outproc,
where in asp sessions will be last if we restart webserver or make changes.
4 In we can configure each application using web.config file which is availble in application itself and we have machine.config wherer we can configure all applications.
In asp we cannot configure single aplication
5 we have autopostback event which is not in asp
6 In we have global.asax where can hadle some global things which is not in asp.
7 We have well built GUI to work in
8 We have and as well as disconnected architecture in
9 We have Xcopy deployment in
10. We can work with any language as code behind technique in that supports .net frame work

Answer 3:
a) is compiled but ASP is a interpretor or script only.
b) is supported more control then the asp.
c) is more supported even control then the asp.
d) In if update any component then no need to shutdown the computer but in asp if loaded any component then need tobe shutdown the computer.
d) So lastly an is faster then asp .