We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 11
What do I need to create and run an ASP.NET application?
Windows 2000, Windows Server 2003 or Windows XP.
ASP.NET, which can be either the redistributable (included in the .NET S!" or #isual Studio .NET. Where can I download the .NET SDK? .NET S! can be obtained here. ($ou have to install the %icroso&t .NET 'ra(ewor) #ersion *.* +edistributable Pac)a,e be&ore installin, the .NET S!." Are there any free IDEs for the .NET SDK? %icroso&t -rovides #isual Studio 200. E/-ress Edition 0eta &or &ree. 1& -articular interest to the ASP.NET develo-ers would be the #isual Web evelo-er 200. E/-ress Edition 0eta 2 available as a &ree download. The ASP.NET Web %atri/ Pro2ect (su--orted b3 %icroso&t" is a &ree 4E &or develo-in, ASP.NET a--lications and is available here. There is also a &ree o-en5source 6N4X version o& the %icroso&t .NET develo-(ent -lat&or( called %ono available &or download here. Another increasin,l3 -o-ular 1-en Source evelo-(ent Environ(ent &or .NET is the 7develo- (short &or Shar-evelo-" available &or download here. When was ASP.NET released? ASP.NET is a -art o& the .NET &ra(ewor) which was released as a so&tware -lat&or( in 2002. Is a new version coin! up? ASP.NET 2.0, #isual Studio 200. (Whidbe3", #isual Web evelo-er 200. E/-ress Edition are the ne/t releases o& %icroso&t8s Web -lat&or( and tools. The3 have alread3 been released as 0eta versions. The3 are scheduled to be released in the wee) o& Nove(ber 9, 200.. E/-lain Na(es-ace. Na(es-aces are lo,ical ,rou-in,s o& na(es used within a -ro,ra(. There (a3 be (ulti-le na(es-aces in a sin,le a--lication code, ,rou-ed based on the identi&iers: use. The na(e o& an3 ,iven identi&ier (ust a--ear onl3 once in its na(es-ace. "ist the types of Authentication supported #y ASP.NET. Windows (de&ault" 'or(s Pass-ort None (Securit3 disabled" What is ;<+= ;o((on <an,ua,e +unti(e (;<+" is a run5ti(e environ(ent that (ana,es the e/ecution o& .NET code and -rovides services li)e (e(or3 (ana,e(ent, debu,,in,, securit3, etc. The ;<+ is also )nown as #irtual E/ecution S3ste( (#ES". What is $"I? The ;<4 is a set o& s-eci&ications &or a runti(e environ(ent, includin, a co((on t3-e s3ste(, base class librar3, and a (achine5inde-endent inter(ediate code )nown as the ;o((on 4nter(ediate <an,ua,e (;4<". (Source> Wi)i-edia." "ist the various sta!es of Pa!e%"oad lifecycle. 4nit(" <oad(" Pre+ender(" 6nload(" E&plain Asse#ly and 'anifest. An asse(bl3 is a collection o& one or (ore &iles and one o& the( (<< or EXE" contains a s-ecial (etadata called Asse(bl3 %ani&est. The (ani&est is stored as binar3 data and contains details li)e versionin, re?uire(ents &or the asse(bl3, the author, securit3 -er(issions, and list o& &iles &or(in, the asse(bl3. An asse(bl3 is created whenever a << is built. The (ani&est can be viewed -ro,ra((aticall3 b3 (a)in, use o& classes &ro( the S3ste(.+e&lection na(es-ace. The tool 4nter(ediate <an,ua,e isasse(bler (4<AS%" can be used &or this -ur-ose. 4t can be launched &ro( the co((and -ro(-t or via Start@ +un. What is Shadow $opy? 4n order to re-lace a ;1% co(-onent on a live dedicated server, it was necessar3 to sto- the entire website, co-3 the new &iles and then restart the website. This is not &easible &or the web servers that need to be alwa3s runnin,. .NET co(-onents are di&&erent. The3 can be overwritten at an3 ti(e usin, a (echanis( called Shadow ;o-3. 4t -revents the Portable E/ecutable (PE" &iles li)e <<s and EXEs &ro( bein, loc)ed. Whenever new versions o& the PEs are released, the3 are auto(aticall3 detected b3 the ;<+ and the chan,ed co(-onents will be auto(aticall3 loaded. The3 will be used to -rocess all new re?uests not currentl3 e/ecutin,, while the older version still runs the currentl3 e/ecutin, re?uests. 03 bleedin, out the older version, the u-date is co(-leted. What is D"" (ell? << hell is the -roble( that occurs when an installation o& a newer a--lication (i,ht brea) or hinder other a--lications as newer <<s are co-ied into the s3ste( and the older a--lications do not su--ort or are not co(-atible with the(. .NET overco(es this -roble( b3 su--ortin, (ulti-le versions o& an asse(bl3 at an3 ,iven ti(e. This is also called side5b35side co(-onent versionin,. E&plain We# Services. Web services are -ro,ra((able business lo,ic co(-onents that -rovide access to &unctionalit3 throu,h the 4nternet. Standard -rotocols li)e ATTP can be used to access the(. Web services are based on the Si(-le 1b2ect Access Protocol (S1AP", which is an a--lication o& X%<. Web services are ,iven the .as(/ e/tension. E&plain Windows )ors. Windows 'or(s is e(-lo3ed &or develo-in, Windows B64 a--lications. 4t is a class librar3 that ,ives develo-ers access to Windows ;o((on ;ontrols with rich &unctionalit3. 4t is a co((on B64 librar3 &or all the lan,ua,es su--orted b3 the .NET 'ra(ewor). What is Post#ac*? When an action occurs (li)e button clic)", the -a,e containin, all the controls within the C'1+%... @ ta, -er&or(s an ATTP P1ST, while havin, itsel& as the tar,et 6+<. This is called Postbac). E&plain the differences #etween server%side and client%side code? Server side scri-tin, (eans that all the scri-t will be e/ecuted b3 the server and inter-reted as needed. ;lient side scri-tin, (eans that the scri-t will be e/ecuted i((ediatel3 in the browser such as &or( &ield validation, cloc), e(ail validation, etc. ;lient side scri-tin, is usuall3 done in #0Scri-t or DavaScri-t. Since the code is included in the AT%< -a,e, an3one can see the code b3 viewin, the -a,e source. 4t also -oses as a -ossible securit3 haEard &or the client co(-uter. Enuerate the types of Directives. F Pa,e directive F 4(-ort directive F 4(-le(ents directive F +e,ister directive F Asse(bl3 directive F 1ut-ut;ache directive F +e&erence directive What is $ode%+ehind? ;ode50ehind is a conce-t where the contents o& a -a,e are in one &ile and the server5side code is in another. This allows di&&erent -eo-le to wor) on the sa(e -a,e at the sa(e ti(e and also allows either -art o& the -a,e to be easil3 redesi,ned, with no chan,es re?uired in the other. An 4nherits attribute is added to the F Pa,e directive to s-eci&3 the location o& the ;ode50ehind &ile to the ASP.NET -a,e. Descri#e the difference #etween inline and code #ehind. 4nline code is written alon, side the AT%< in a -a,e. There is no se-arate distinction between desi,n code and lo,ic code. ;ode5behind is code written in a se-arate &ile and re&erenced b3 the .as-/ -a,e. "ist the ASP.NET validation controls? +e?uired'ield#alidator +an,e#alidator ;o(-are#alidator +e,ularE/-ression#alidator ;usto(#alidator #alidationSu((ar3 What is Data +indin!? ata bindin, is a wa3 used to connect values &ro( a collection o& data (e.,. ataSet" to the controls on a web &or(. The values &ro( the dataset are auto(aticall3 dis-la3ed in the controls without havin, to write se-arate code to dis-la3 the(. Descri#e Pa!in! in ASP.NET. The ataBrid control in ASP.NET enables eas3 -a,in, o& the data. The AllowPa,in, -ro-ert3 o& the ataBrid can be set to True to -er&or( -a,in,. ASP.NET auto(aticall3 -er&or(s -a,in, and -rovides the h3-erlin)s to the other -a,es in di&&erent st3les, based on the -ro-ert3 that has been set &or Pa,erSt3le.%ode. Should user input data validation occur server%side or client%side? Why? All user in-ut data validation should occur on the server and (ini(all3 on the client5side, thou,h it is a ,ood wa3 to reduce server load and networ) tra&&ic because we can ensure that onl3 data o& the a--ro-riate t3-e is sub(itted &ro( the &or(. 4t is totall3 insecure. The user can view the code used &or validation and create a wor)around &or it. Secondl3, the 6+< o& the -a,e that handles the data is &reel3 visible in the ori,inal &or( -a,e. This will allow unscru-ulous users to send data &ro( their own &or(s to 3our a--lication. ;lient5side validation can so(eti(es be -er&or(ed where dee(ed a--ro-riate and &easible to -rovide a richer, (ore res-onsive e/-erience &or the user. What is the difference #etween Server.Transfer and ,esponse.,edirect? +es-onse.+edirect> This tells the browser that the re?uested -a,e can be &ound at a new location. The browser then initiates another re?uest to the new -a,e loadin, its contents in the browser. This results in two re?uests b3 the browser. Server.Trans&er> 4t trans&ers e/ecution &ro( the &irst -a,e to the second -a,e on the server. As &ar as the browser client is concerned, it (ade one re?uest and the initial -a,e is the one res-ondin, with content. The bene&it o& this a--roach is one less round tri- to the server &ro( the client browser. Also, an3 -osted &or( variables and ?uer3 strin, -ara(eters are available to the second -a,e as well. What is an interface and what is an a#stract class? 4n an inter&ace, all (ethods (ust be abstract ((ust not be de&ined". 4n an abstract class, so(e (ethods can be de&ined. 4n an inter&ace, no accessibilit3 (odi&iers are allowed, whereas it is allowed in abstract classes. Session state vs. -iew state. 4n so(e cases, usin, view state is not &easible. The alternative &or view state is session state. Session state is e(-lo3ed under the &ollowin, situations> <ar,e a(ounts o& data 5 #iew state tends to increase the siEe o& both the AT%< -a,e sent to the browser and the siEe o& &or( -osted bac). Aence session state is used. Secure data 5 Thou,h the view state data is encoded and (a3 be encr3-ted, it is better and secure i& no sensitive data is sent to the client. Thus, session state is a (ore secure o-tion. Proble(s in serialiEin, o& ob2ects into view state 5 #iew state is e&&icient &or a s(all set o& data. 1ther t3-es li)e ataSet are slower and can ,enerate a ver3 lar,e view state. $an two different pro!rain! lan!ua!es #e i&ed in a sin!le ASP/ file? ASP.NET:s built5in -arsers are used to re(ove code &ro( ASPX &iles and create te(-orar3 &iles. Each -arser understands onl3 one lan,ua,e. There&ore (i/in, o& lan,ua,es in a sin,le ASPX &ile is not -ossible. Is it possi#le to see the code that ASP.NET !enerates fro an ASP/ file? 03 enablin, debu,,in, usin, a CGF Pa,e ebu,HItrueI G@ directive in the ASPX &ile or a Cco(-ilation debu,HItrueI@ state(ent in Web.con&i,, the ,enerated code can be viewed. The code is stored in a ;S or #0 &ile (usuall3 in the JGS3ste(+oot GJ%icroso&t.NETJ'ra(ewor)Jv*.0.nnnnJTe(-orar3 ASP.NET 'iles". $an a custo .NET data type #e used in a We# for? This can be achieved b3 -lacin, the << containin, the custo( data t3-e in the a--lication root8s bin director3 and ASP.NET will auto(aticall3 load the << when the t3-e is re&erenced. "ist the event handlers that can #e included in 0lo#al.asa&? A--lication start and end event handlers Session start and end event handlers Per5re?uest event handlers Non5deter(inistic event handlers ;an the view state be -rotected &ro( ta(-erin,= This can be achieved b3 includin, an F Pa,e directive with an Enable#iewState%acHItrueI attribute in each ASPX &ile that has to be -rotected. Another wa3 is to include the C-a,es enable#iewState%acHItrueI K@ state(ent in the Web.con&i, &ile. $an the view state #e encrypted? The view state can be encr3-ted b3 settin, Enable#iewState%ac to true and either (odi&3in, the C(achine!e3@ ele(ent in %achine.con&i, to C(achine!e3 validationHI3ESL K@ or b3 addin, the above state(ent to Web.con&i,. When durin! the pa!e processin! cycle is -iewState availa#le? The view state is available a&ter the 4nit(" and be&ore the +ender(" (ethods are called durin, Pa,e load. Do We# controls support $ascadin! Style Sheets? All Web controls inherit a -ro-ert3 na(ed ;ss;lass &ro( the base class S3ste(.Web.64.Web;ontrols.Web;ontrol which can be used to control the -ro-erties o& the web control. What naespaces are iported #y default in ASP/ files? The &ollowin, na(es-aces are i(-orted b3 de&ault. 1ther na(es-aces (ust be i(-orted (anuall3 usin, F 4(-ort directives. S3ste( S3ste(.;ollections S3ste(.;ollections.S-ecialiEed S3ste(.;on&i,uration S3ste(.Te/t S3ste(.Te/t.+e,ularE/-ressions S3ste(.Web S3ste(.Web.;achin, S3ste(.Web.Securit3 S3ste(.Web.SessionState S3ste(.Web.64 S3ste(.Web.64.At(l;ontrols S3ste(.Web.64.Web;ontrols What classes are needed to send e%ail fro an ASP.NET application? The classes %ail%essa,e and S(t-%ail have to be used to send e(ail &ro( an ASP.NET a--lication. %ail%essa,e and S(t-%ail are classes de&ined in the .NET 'ra(ewor) ;lass <ibrar38s S3ste(.Web.%ail na(es-ace. Why do soe we# service classes derive fro Syste.We#.We#Services while others do not? Those Web Service classes which e(-lo3 ob2ects li)e A--lication, Session, ;onte/t, Server, and 6ser have to derive &ro( S3ste(.Web.WebServices. 4& it does not use these ob2ects, it is not necessar3 to be derived &ro( it. What are -SDIS$1 files? #S4S;1 &iles are 4S;1 &iles that enable d3na(ic discover3 o& Web Services. ASP.NET lin)s the #S4S;1 to a ATTP handler that scans the host director3 and subdirectories &or AS%X and 4S;1 &iles and returns a d3na(icall3 ,enerated 4S;1 docu(ent. A client who re?uests a #S4S;1 &ile ,ets bac) what a--ears to be a static 4S;1 docu(ent. (ow can files #e uploaded to We# pa!es in ASP.NET? This can be done b3 usin, the At(l4n-ut'ile class to declare an instance o& an Cin-ut t3-eHI&ileI runatHIserverIK@ ta,. Then, a b3teMN can be declared to read in the data &ro( the in-ut &ile. This can then be sent to the server. (ow do I create an ASP/ pa!e that periodically refreshes itself? The &ollowin, %ETA ta, can be used as a tri,,er to auto(aticall3 re&resh the -a,e ever3 n seconds> C(eta htt-5e?uivHI+e&reshI contentHInnI@ Aow do 4 initialiEe a Te/t0o/ whose Te/t%ode is I-asswordI, with a -assword= The Te/t0o/:s Te/t -ro-ert3 cannot be used to assi,n a value to a -assword &ield. 4nstead, its #alue &ield can be used &or that -ur-ose. Cas->Te/t0o/ #alueHIi(bat(anI Te/t%odeHIPasswordI 4HIPasswordI +unAtHIserverI K@ Wh3 does the control8s Posted'ile -ro-ert3 alwa3s show null when usin, At(l4n-ut'ile control to u-load &iles to a Web server= This occurs when an enct3-eHI(ulti-artK&or(5dataI attribute is (issin, in the C&or(@ ta,. (ow can the focus #e set to a specific control when a We# for loads? This can be achieved b3 usin, client5side scri-t> docu(ent.&or(sM0N.Te/t0o/*.&ocus (" The above code will set the &ocus to a Te/t0o/ na(ed Te/t0o/* when the -a,e loads. (ow does Syste.We#.2I.Pa!e3s IsPost+ac* property wor*? 4sPost0ac) chec)s to see whether the ATTP re?uest is acco(-anied b3 -ostbac) data containin, a OO#4EWSTATE or OOE#ENTTA+BET -ara(eter. 4& there are none, then it is not a -ostbac). What is WSD"? WS< is an X%< &or(at &or describin, networ) services as a set o& end-oints o-eratin, on (essa,es containin, either docu(ent5oriented or -rocedure5oriented in&or(ation. The o-erations and (essa,es are described abstractl3, and then bound to a concrete networ) -rotocol and (essa,e &or(at to de&ine an end-oint. +elated concrete end-oints are co(bined into abstract end-oints (services". (Source> www.w3.or," What is 2DDI? 64 stands &or 6niversal escri-tion, iscover3, and 4nte,ration. 4t is li)e an I$ellow Pa,esI &or Web Services. 4t is (aintained b3 %icroso&t, 40%, and Ariba, and is desi,ned to -rovide detailed in&or(ation re,ardin, re,istered Web Services &or all vendors. The 64 can be ?ueried &or s-eci&ic Web Services. Is it possi#le to !enerate the source code for an ASP.NET We# service fro a WSD"? The Wsdl.e/e tool (.NET 'ra(ewor) S!" can be used to ,enerate source code &or an ASP.NET web service with its WS< lin). E/a(-le> wsdl Kserver htt->KKa-i.,oo,le.co(KBoo,leSearch.wsdl. Why do uploads fail while usin! an ASP.NET file upload control to upload lar!e files? ASP.NET li(its the siEe o& &ile u-loads &or securit3 -ur-oses. The de&ault siEe is P %0. This can be chan,ed b3 (odi&3in, the (a/+e?uest<en,th attribute o& %achine.con&i,8s Chtt-+unti(e@ ele(ent. Descri#e the difference #etween inline and code #ehind. 4nline code is written alon, side the AT%< in a -a,e. ;ode5behind is code written in a se-arate &ile and re&erenced b3 the .as-/ -a,e. escribe the role o& inetin&o.e/e, as-netOisa-i.dll andas-netOw-.e/e in the -a,e loadin, -rocess. inetin&o.e/e is the%icroso&t 44S server runnin,, handlin, ASP.NET re?uests a(on, other thin,s.When an ASP.NET re?uest is received (usuall3 a &ile with .as-/ e/tension", the 4SAP4 &ilter as-netOisa-i.dll ta)es care o& it b3 -assin, the re?uest tothe actual wor)er -rocess as-netOw-.e/e. $an you e&plain the difference #etween an AD1.NET Dataset and an AD1 ,ecordset? #alid answers are> A ataSet can re-resent an entire relational database in (e(or3, co(-lete with tables, relations, and views. A ataSet is desi,ned to wor) without an3 continuin, connection to the ori,inal data source. ata in a ataSet is bul)5loaded, rather than bein, loaded on de(and. There8s no conce-t o& cursor t3-es in a ataSet. ataSets have no current record -ointer $ou can use 'or Each loo-s to (ove throu,h the data. $ou can store (an3 edits in a ataSet, and write the( to the ori,inal data source in a sin,le o-eration. Thou,h the ataSet is universal, other ob2ects in A1.NET co(e in di&&erent versions &or di&&erent data sources. What4s a #u##led event? When 3ou have a co(-le/ control, li)e ataBrid, writin, an event -rocessin, routine &or each ob2ect (cell, button, row, etc." is ?uite tedious. The controls can bubble u- their eventhandlers, allowin, the (ain ataBrid event handler to ta)e care o& its constituents. What data types do the ,an!e-alidator control support? 4nte,er, Strin,, and ate. E&plain what a diff!ra is5 and a !ood use for one? The i&&Bra( is one o& the two X%< &or(ats that 3ou can use to render ataSet ob2ect contents to X%<. A ,ood use is readin, database data to an X%< &ile to be sent to a Web Service. What is the transport protocol you use to call a We# service? S1AP (Si(-le 1b2ect Access Protocol" is the -re&erred -rotocol. What is -iewState? #iewState allows the state o& ob2ects (serialiEable" to be stored in a hidden &ield on the -a,e. #iewState is trans-orted to the client and bac) to the server, and is not stored on the server or an3 other e/ternal source. #iewState is used the retain the state o& server5side ob2ects between -ostabac)s. What does the IEnable#iewStateI -ro-ert3 do= Wh3 would 4 want it on or o&&= 4t allows the -a,e to save the users in-ut on a &or( across -ostbac)s. 4t saves the server5side values &or a ,iven control into #iewState, which is stored as a hidden value on the -a,e be&ore sendin, the -a,e to the clients browser. When the -a,e is -osted bac) to the server the server control is recreated with the state stored in viewstate. What are the different types of Session state ana!eent options availa#le with ASP.NET? ASP.NET -rovides 4n5Process and 1ut5o&5Process state (ana,e(ent. 4n5Process stores the session in (e(or3 on the web server. This re?uires the a Istic)35serverI (or no load5balancin," so that the user is alwa3s reconnected to the sa(e web server. 1ut5o&5Process Session state (ana,e(ent stores data in an e/ternal data source. The e/ternal data source (a3 be either a SQ< Server or a State Server service. 1ut5o&5Process state (ana,e(ent re?uires that all ob2ects stored in session are serialiEable. What is D1' and how does it relate to /'"? The ocu(ent 1b2ect %odel (1%" is an inter&ace s-eci&ication (aintained b3 the W3; 1% Wor),rou- that de&ines an a--lication inde-endent (echanis( to access, -arse, or u-date X%< data. 4n si(-le ter(s it is a hierarchical (odel that allows develo-ers to (ani-ulate X%< docu(ents easil3 An3 develo-er that has wor)ed e/tensivel3 with X%< should be able to discuss the conce-t and use o& 1% ob2ects &reel3. Additionall3, it is not unreasonable to e/-ect advanced candidates to thorou,hl3 understand its internal wor)in,s and be able to e/-lain how 1% di&&ers &ro( an event5based inter&ace li)e SAX. What is S1AP and how does it relate to /'"? The Si(-le 1b2ect Access Protocol (S1AP" uses X%< to de&ine a -rotocol &or the e/chan,e o& in&or(ation in distributed co(-utin, environ(ents. S1AP consists o& three co(-onents> an envelo-e, a set o& encodin, rules, and a convention &or re-resentin, re(ote -rocedure calls. 6nless e/-erience with S1AP is a direct re?uire(ent &or the o-en -osition, )nowin, the s-eci&ics o& the -rotocol, or how it can be used in con2unction with ATTP, is not as i(-ortant as identi&3in, it as a natural a--lication o& X%<. $an you wal* us throu!h the steps necessary to parse /'" docuents? Su-er&iciall3, this is a &airl3 basic ?uestion. Aowever, the -oint is not to deter(ine whether candidates understand the conce-t o& a -arser but rather have the( wal) throu,h the -rocess o& -arsin, X%< docu(ents ste-5b35ste-. eter(inin, whether a non5validatin, or validatin, -arser is needed, choosin, the a--ro-riate -arser, and handlin, errors are all i(-ortant as-ects to this -rocess that should be included in the candidate8s res-onse. What are possi#le ipleentations of distri#uted applications in .NET? .NET +e(otin, and ASP.NET Web Services. 4& we tal) about the 'ra(ewor) ;lass <ibrar3, noteworth3 classes are in S3ste(.+unti(e.+e(otin, and S3ste(.Web.Services. What are the consideration in decidin! to use .NET ,eotin! or ASP.NET We# Services? +e(otin, is a (ore e&&icient co((unication e/chan,e when 3ou can control both ends o& the a--lication involved in the co((unication -rocess. Web Services -rovide an o-en5-rotocol5 based e/chan,e o& in&or(aion. Web Services are best when 3ou need to co((unicate with an e/ternal or,aniEation or another (non5.NET" technolo,3. What4s a pro&y of the server o#6ect in .NET ,eotin!? 4t:s a &a)e co-3 o& the server ob2ect that resides on the client side and behaves as i& it was the server. 4t handles the co((unication between real server ob2ect and the client ob2ect. This -rocess is also )nown as (arshalin,. What are reota#le o#6ects in .NET ,eotin!? +e(otable ob2ects are the ob2ects that can be (arshaled across the a--lication do(ains. $ou can (arshal b3 value, where a dee- co-3 o& the ob2ect is created and then -assed to the receiver. $ou can also (arshal b3 re&erence, where 2ust a re&erence to an e/istin, ob2ect is -assed. What are channels in .NET ,eotin!? ;hannels re-resent the ob2ects that trans&er the other serialiEed ob2ects &ro( one a--lication do(ain to another and &ro( one co(-uter to another, as well as one -rocess to another on the sa(e bo/. A channel (ust e/ist be&ore an ob2ect can be trans&erred. What security easures e&ist for .NET ,eotin! in Syste.,untie.,eotin!? None. Securit3 should be ta)en care o& at the a--lication level. ;r3-to,ra-h3 and other securit3 techni?ues can be a--lied at a--lication or server level. What is a foratter? A &or(atter is an ob2ect that is res-onsible &or encodin, and serialiEin, data into (essa,es on one end, and deserialiEin, and decodin, (essa,es into data on the other end. $hoosin! #etween (TTP and T$P for protocols and +inary and S1AP for foratters5 what are the trade%offs? 0inar3 over T;P is the (ost e&&iecient, S1AP over ATTP is the (ost intero-erable. What4s Sin!le$all activation ode used for? 4& the server ob2ect is instantiated &or res-ondin, to 2ust one sin,le re?uest, the re?uest should be (ade in Sin,le;all (ode. What4s Sin!leton activation ode? A sin,le ob2ect is instantiated re,ardless o& the nu(ber o& clients accessin, it. <i&eti(e o& this ob2ect is deter(ined b3 li&eti(e lease. (ow do you define the lease of the o#6ect? 03 i(-le(entin, 4<ease inter&ace when writin, the class code. $an you confi!ure a .NET ,eotin! o#6ect via /'" file? $es, via (achine.con&i, and a--lication level .con&i, &ile (or web.con&i, in ASP.NET". A--lication5 level X%< settin,s ta)e -recedence over (achine.con&i,. (ow can you autoatically !enerate interface for the reota#le o#6ect in .NET with 'icrosoft tools? 6se the Soa-suds tool. What are the new Data $ontrols in Asp.net 7.8? ata access in ASP.NET 2.0 can be acco(-lished co(-letel3 declarativel3 (no code" usin, the new data5bound and data source controls. There are new data source controls to re-resent di&&erent data bac)ends such as SQ< database, business ob2ects, and X%<, and there are new data5bound controls &or renderin, co((on 64 &or data, such as ,ridview, detailsview, and &or(view. What are the new Navi!ation $ontrols in Asp.net 7.8? The navi,ation controls -rovide co((on 64 &or navi,atin, between -a,es in 3our site, such as treeview, (enu, and site(a--ath. These controls use the site navi,ation service in ASP.NET 2.0 to retrieve the custo( structure 3ou have de&ined &or 3our site. What are the new "o!in $ontrolsin Asp.net 7.8? The new lo,in controls -rovide the buildin, bloc)s to add authentication and authoriEation5based 64 to 3our site, such as lo,in &or(s, create user &or(s, -assword retrieval, and custo( 64 &or lo,,ed in users or roles. These controls use the built5in (e(bershi- and role services in ASP.NET 2.0 to interact with the user and role in&or(ation de&ined &or 3our site. What are the new We# Part $ontrols in Asp.net 7.8 ? Web -arts are an e/citin, new &a(il3 o& controls that enable 3ou to add rich, -ersonaliEed content and la3out to 3our site, as well as the abilit3 to edit that content and la3out directl3 &ro( 3our a--lication -a,es. These controls rel3 on the -ersonaliEation services in ASP.NET 2.0 to -rovide a uni?ue e/-erience &or each user in 3our a--lication. What are 'aster Pa!es? This &eature -rovides the abilit3 to de&ine co((on structure and inter&ace ele(ents &or 3our site, such as a -a,e header, &ooter, or navi,ation bar, in a co((on location called a I(aster -a,eI, to be shared b3 (an3 -a,es in 3our site. 4n one si(-le -lace 3ou can control the loo), &eel, and (uch o& &unctionalit3 &or an entire Web site. This i(-roves the (aintainabilit3 o& 3our site and avoids unnecessar3 du-lication o& code &or shared site structure or behavior. What are Thees and S*ins in 7.85 e&plain us!ae scenario? The the(es and s)ins &eatures in ASP.NET 2.0 allow &or eas3 custo(iEation o& 3our site8s loo)5 and5&eel. $ou can de&ine st3le in&or(ation in a co((on location called a Ithe(eI, and a--l3 that st3le in&or(ation ,loball3 to -a,es or controls in 3our site. <i)e %aster Pa,es, this i(-roves the (aintainabilit3 o& 3our site and avoid unnecessar3 du-lication o& code &or shared st3les. What is a profile o#6ect5 why is it used? 6sin, the new -ersonaliEation services in ASP.NET 2.0 3ou can easil3 create custo(iEed e/-eriences within Web a--lications. The Pro&ile ob2ect enables develo-ers to easil3 build stron,l35t3-ed, stic)3 data stores &or user accounts and build hi,hl3 custo(iEed, relationshi- based e/-eriences. At the sa(e ti(e, a develo-er can levera,e Web Parts and the -ersonaliEation service to enable Web site visitors to co(-letel3 control the la3out and behavior o& the site, with the )nowled,e that the site is co(-letel3 custo(iEed &or the(. PersonaliEaton scenarios are now easier to build than ever be&ore and re?uire si,ni&icantl3 less code and e&&ort to i(-le(ent. What is $onfi!uration API? ASP.NET 2.0 contains new con&i,uration (ana,e(ent AP4s, enablin, users to -ro,ra((aticall3 build -ro,ra(s or scri-ts that create, read, and u-date Web.con&i, and (achine.con&i, con&i,uration &iles. What is ''$ Adin Tool? ASP.NET 2.0 -rovides a new co(-rehensive ad(in tool that -lu,s into the e/istin, 44S Ad(inistration %%;, enablin, an ad(inistrator to ,ra-hicall3 read or chan,e co((on settin,s within our X%< con&i,uration &iles. E&plain the use of Pre%copilation Tool? ASP.NET 2.0 delivers a new a--lication de-lo3(ent utilit3 that enables both develo-ers and ad(inistrators to -reco(-ile a d3na(ic ASP.NET a--lication -rior to de-lo3(ent. This -reco(-ilation auto(aticall3 identi&ies an3 co(-ilation issues an3where within the site, as well as enables ASP.NET a--lications to be de-lo3ed without an3 source bein, stored on the server (one can o-tionall3 re(ove the content o& .as-/ &iles as -art o& the co(-ile -hase", &urther -rotectin, 3our intellectual -ro-ert3. Aow is a--lication (ana,e(ent and (aintenance i(-roved in As-.net 2.0= ASP.NET 2.0 also -rovides new health5(onitorin, su--ort to enable ad(inistrators to be auto(aticall3 noti&ied when an a--lication on a server starts to e/-erience -roble(s. New tracin, &eatures will enable ad(inistrators to ca-ture run5ti(e and re?uest data &ro( a -roduction server to better dia,nose issues. ASP.NET 2.0 is deliverin, &eatures that will enable develo-ers and ad(inistrators to si(-li&3 the da35to5da3 (ana,e(ent and (aintenance o& their Web a--lications. What are Provider%driven Application Services? e&plain in detail? ASP.NET 2.0 now includes built5in su--ort &or (e(bershi- (user na(eK-assword credential stora,e" and role (ana,e(ent services out o& the bo/. The new -ersonaliEation service enables ?uic) stora,eKretrieval o& user settin,s and -re&erences, &acilitatin, rich custo(iEation with (ini(al code. The new site navi,ation s3ste( enables develo-ers to ?uic)l3 build lin) structures consistentl3 across a site. As all o& these services are -rovider5driven, the3 can be easil3 swa--ed out and re-laced with 3our own custo( i(-le(entation. With this e/tensibilit3 o-tion, 3ou have co(-lete control over the data store and sche(a that drives these rich a--lication services. E/-lain Server ;ontrol E/tensibilit3 with re&erence to As-.net 2.0 = ASP.NET 2.0 includes i(-roved su--ort &or control e/tensibilit3, such as (ore base classes that enca-sulate co((on behaviors, i(-roved desi,ner su--ort, (ore AP4s &or interactin, with client5 side scri-t, (etadata5driven su--ort &or new &eatures li)e the(es and accessibilit3 veri&ication, better state (ana,e(ent, and (ore. What are the Data Source $ontrols? ata access in ASP.NET 2.0 is now -er&or(ed declarativel3 usin, data source controls on a -a,e. 4n this (odel, su--ort &or new data bac)end stora,e -roviders can be easil3 added b3 i(-le(entin, custo( data source controls. Additionall3, the S?lataSource control that shi-s in the bo/ has built5in su--ort &or an3 A1.NET (ana,ed -rovider that i(-le(ents the new -rovider &actor3 (odel in A1.NET.
What are $opilation +uild Providers? 3na(ic co(-ilation in ASP.NET 2.0 is now handled b3 e/tensible co(-ilation build -roviders, which associate a -articular &ile e/tension with a handler that )nows how to co(-ile that e/tension d3na(icall3 at runti(e. 'or e/a(-le, .res/ &iles can be d3na(icall3 co(-iled to resources, .wsdl &iles to web service -ro/ies, and ./sd &iles to t3-ed ataSet ob2ects. 4n addition to the built5in su--ort, it is eas3 to add su--ort &or additional e/tensions b3 i(-le(entin, a custo( build -rovider and re,isterin, it in Web.con&i,. What is E&pression +uilders5 why would you use it? ASP.NET 2.0 introduces a declarative new s3nta/ &or re&erencin, code to substitute values into the -a,e, called E/-ression 0uilders. ASP.NET 2.0 includes e/-ression builders &or re&erencin, strin, resources &or localiEation, connection strin,s, a--lication settin,s, and -ro&ile values. $ou can also write 3our own e/-ression builders to create 3our own custo( s3nta/ to substitute values in a -a,e renderin,. Is ASP.NET 9:%+it ena#led? how? ASP.NET 2.0 is now RP5bit enabled, (eanin, it can ta)e advanta,e o& the &ull (e(or3 address s-ace o& new RP5bit -rocessors and servers. evelo-ers can si(-l3 co-3 e/istin, 325bit ASP.NET a--lications onto a RP5bit ASP.NET 2.0 server and have the( auto(aticall3 be D4T co(-iled and e/ecuted as native RP5bit a--lications (no source code chan,es or (anual re5co(-ile are re?uired". E&plain how $achin! in Asp.net 7.8 is different fro $achin! in Asp.net ;.;? ASP.NET 2.0 also now includes auto(atic database server cache invalidation. This -ower&ul and eas35to5use &eature allows develo-ers to a,,ressivel3 out-ut cache database5driven -a,e and -artial -a,e content within a site and have ASP.NET auto(aticall3 invalidate these cache entries and re&resh the content whenever the bac)5end database chan,es. evelo-ers can now sa&el3 cache ti(e5critical content &or lon, -eriods without worr3in, about servin, visitors stale data.