Question - Write
difference between overloading
and overriding.
Answer - Overriding -
Methods have the same signature as the parent class method.
Overloading - Methods have different parameters list or
type or the return type.
Question - Write
namespace for user locale in
ASP.NET.
Answer -
System.Web.UI.Page.Culture
Question -
How do you implement inheritance in
.NET?
Answer
- In C#.NET, we implement using ":"
In
VB.Net we implements using "Inherits" keyword.
Question -
Explain the differences between Server-side and
Client-side code.
Answer
- Server-side code executes on the
server.
Client-side code
executes in the client's browser.
Server.Transfer and
Response.Redirect.
Server.Transfer
Transfers page
processing from one page directly to the next
page.
No round-trip back
to the client's browser.
Faster response
with lesser overhead on the server.
Server.Transfer
does not update the clients url history list or
current url.
Response.Redirect
Used to redirect
the user's browser to another page or
site.
Performs a trip
back to the client where the client's browser is redirected to
the new page.
The user's browser
history list is updated to reflect the new
address.
Question -
Define ADO.NET Dataset.
Answer
- A Dataset can represent an entire relational
database in memory, complete with tables, relations, and
views. A dataset is designed to work without any continuing
connection to the original data source.
You
can use For Each loops to move through the data in the
dataset.
Question -
Define global.asax in
ASP.NET.
Answer
- The Global.asax is including the
Global.asax.cs file.
You can implement
application and session level events using
global.asax.
Question -
What are the Application_Start and Session_Start
subroutines used
for?
Answer -
These subroutines set the variables for the
Application and Session objects.
Question -
Define inline code and code
behind.
Answer
- Inline code written along side the html in a
page.
Code-behind is code written in a
separate file and referenced by the .aspx
page.
Question -
What is MSIL?
Answer
- MSIL is the Microsoft Intermediate
Language.
.NET
compatible application will get converted to MSIL on
compilation.
MSIL gets converted into machine
language or native code by JIT
compiler.
Question -
Name the class Web Forms inherit
from.
Answer
- The Page class.
Explain
different IIS isolation levels in ASP.NET- Low (IIS process
A), Medium (Pooled), High
(Isolated)
Answer
- Low (IIS Process):
This is the fastest and the default IIS4
setting. ASP pages run in INetInfo.exe and so they are
executed in-process. If ASP crashes, IIS too does and must be
restarted.
Medium
(Pooled):
This IIS setting is more reliable. In
this if ASP crashes, IIS does not. In this, the ASP
applications share the same process, so a web site can run
with just IIS and ASP process. IIS5 supports this setting and
is the default setting.
High
(Isolated):
This setting runs in MTS.EXE in IIS4
and in DLLHOST.EXE in IIS5. If one ASP application crashes,
IIS or other ASP applications don’t crash. Each ASP
application runs out-process in its own space.
Part 1 | Part 2 | Part 3 | Part 4 | part
5