Anda di halaman 1dari 3

Interview Questions

ASP.NET
1. Describe the role of inetinfo.exe, aspnet_isapi.dll
andaspnet_wp.exe in the page loading process. inetinfo.exe is
theMicrosoft IIS server running, handling ASP.NET requests among other
things.When an ASP.NET request is received usuall! a "le #ith .as$x
extension%,the ISAPI "lter as$net&isa$i.dll ta'es care of it (! $assing the
request tothe actual #or'er $rocess as$net&#$.exe.
. !hat"s the di#erence between $esponse.!rite%&
and$esponse.'utput.!rite%&( The latter one allo#s !ou to #rite
formattedout$ut.
). !hat *ethods are +red during the page load( Init% ) #hen the $ageis
instantiated, *oad% ) #hen the $age is loaded into server
memor!,Pre+ender% ) the (rief moment (efore the $age is dis$la!ed to the
user as,TM*, -nload% ) #hen $age "nishes loading.
,. !here does the !eb page belong in the .NET -ra*ewor. class
hierarch/(S!stem.We(.-I.Page
0. !here do /ou store the infor*ation about the user"s locale(
S!stem.We(.-I.Page..ulture
1. !hat"s the di#erence between 2odebehind345/2ode.asp6.cs4
andSrc345/2ode.asp6.cs4( .ode/ehind is relevant to 0isual Studio.NET
onl!.
7. !hat"s a bubbled event( When !ou have a com$lex control, li'e
1ata2rid, #riting an event $rocessing routine for each o(3ect cell, (utton,
ro#, etc.% is quite tedious. The controls can (u((le u$ their eventhandlers,
allo#ing the main 1ata2rid event handler to ta'e care of its constituents.
8. Suppose /ou want a certain ASP.NET function e6ecuted on
5ouse'ver overa certain button. !here do /ou add an event
handler( It4s the Attri(utes$ro$ert!, the Add function inside that $ro$ert!.
So (tnSu(mit.Attri(utes.Add5onMouse6ver5,5some.lient.ode%75%
9. !hat data t/pe does the $ange:alidator control support(
Integer,String and 1ate.
1;.E6plain the di#erences between Server<side and 2lient<side code(
Server)side code runs on the server. .lient)side code runs in the clients4
(ro#ser.
11.!hat t/pe of code %server or client& is found in a 2ode<=ehind
class( Server)side code.
1.Should validation %did the user enter a real date& occur server<side
or client<side( !h/( .lient)side. This reduces an additional request to the
server to validate the users in$ut.
1).!hat does the 4Enable:iewState4 propert/ do( !h/ would I want it
on or o#( It ena(les the vie#state on the $age. It allo#s the $age to save
the users in$ut on a form.
1,.!hat is the di#erence between Server.Transfer and
$esponse.$edirect( !h/ would I choose one over the other(
Server.Transfer is used to $ost a form to another $age. +es$onse.+edirect is
used to redirect the user to another $age or site.
10.2an /ou e6plain the di#erence between an AD'.NET Dataset and an
AD' $ecordset(
11.2an /ou give an e6a*ple of what *ight be best suited to place in
the Application>Start and Session>Start subroutines( This is #here
!ou can set the s$eci"c varia(les for the A$$lication and Session o(3ects.
17.If I"* developing an application that *ust acco**odate *ultiple
securit/ levels though secure login and */ ASP.NET web application
is spanned across three web<servers %using round<robin load
balancing& what would be the best approach to *aintain login<in
state for the users( Maintain the login state securit! through a data(ase.
18.2an /ou e6plain what inheritance is and an e6a*ple of when /ou
*ight use it( When !ou #ant to inherit use the functionalit! of% another
class. /ase .lass Em$lo!ee. A Manager class could (e derived from the
Em$lo!ee (ase class.
19.!hats an asse*bl/( Assem(lies are the (uilding (loc's of the .NET
frame#or'.a
;.Describe the di#erence between inline and code behind. Inline code
#ritten along side the html in a $age. .ode)(ehind is code #ritten in a
se$arate "le and referenced (! the .as$x $age.
1.E6plain what a di#gra* is? and a good use for one( The 1i82ram is
one of the t#o 9M* formats that !ou can use to render 1ataSet o(3ect
contents to 9M*. :or reading data(ase data to an 9M* "le to (e sent to a
We( Service.
.!hats 5SI@? and wh/ should */ developers need an appreciation of
it if at all( MSI* is the Microsoft Intermediate *anguage. All .NET
com$ati(le languages #ill get converted to MSI*.
).!hich *ethod do /ou invo.e on the DataAdapter control to load
/our generated dataset with data( The .:ill% method
,.2an /ou edit data in the $epeater control( No, it 3ust reads the
information from its data source
0.!hich te*plate *ust /ou provide? in order to displa/ data in a
$epeater aaaacontrol( ItemTem$late
1.Aow can /ou provide an alternating color sche*e in a $epeater
control( -se the AlternatingItemTem$late
7.!hat propert/ *ust /ou set? and what *ethod *ust /ou call in
/our code? in order to bind the data fro* so*e data source to the
$epeater control( ;ou must set the 1ataSource $ro$ert! and call the
1ata/ind method.
8.!hat base class do all !eb -or*s inherit fro*( The Page class.
9.Na*e two properties co**on in ever/ validation control(
.ontrolTo0alidate $ro$ert! and Text $ro$ert!.
);.!hat tags do /ou need to add within the aspBdatagrid tags to bind
colu*ns *anuall/( Set Auto2enerate.olumns Pro$ert! to false on the
datagrid tag
)1.!hat tag do /ou use to add a h/perlin. colu*n to the DataCrid(
<as$=,!$er*in'.olumn>
).!hat is the transport protocol /ou use to call a !eb service( S6AP is
the $referred $rotocol.
)).True or -alseB A !eb service can onl/ be written in .NET( :alse
),.!hat does !SD@ stand for( We( Services 1escri$tion *anguage%
)0.!here on the Internet would /ou loo. for !eb services(
)1.!hich propert/ on a 2o*bo =o6 do /ou set with a colu*n na*e?
prior to setting the DataSource? to displa/ data in the co*bo bo6(
1ataText:ield $ro$ert!
)7.!hich control would /ou use if /ou needed to *a.e sure the values
in two di#erent controls *atched( .om$are0alidator .ontrol
)8.True or -alseB To test a !eb service /ou *ust create a windows
application or !eb application to consu*e this service( :alse, the
#e(service comes #ith a test $age and it $rovides ,TTP)2ET method to
test.
)9.Aow *an/ classes can a single .NET D@@ contain( It can contain man!
classes.

Anda mungkin juga menyukai