asp.net review class
Post on 16-Feb-2018
216 Views
Preview:
TRANSCRIPT
-
7/23/2019 ASP.net Review Class
1/8
ASP.NET Review
ClassHTMLis client side
Easy way to communicate with server
CSS is applicable inASP.NET
JavaScript is not applicable in ASP.NET
ASP.NETis used to create webpage
Nowadays people are changing from ASP.NET to M!
"henASP.NETis created they are called web forms and they have e#tension of.aspx
The di$erence between HTMLandASP.NET
HTMLis !lient side%
ASP.NETis Server side
ASP.NETis whatever the client do you can monitor or save temporarily in thesystem
State Management is di$erent types of techni&ues which is used to maintainstate of the ASP.NET web form% but in 'TM( you cannot maintain state of the 'TM(
Statement management with the help of
Cookies,A computer cookieis a small fle no larger than our kilobytes used by Web
sites to log visitors to and rom the site. Web sites download a cookie that collectsand stores inormation or use later.View StateThe view state is the state of the page and all its controls. )t isautomatically maintained across posts by ASP.NET framewor*.
(oading slow down can be avoided
ASP.NET server contros retain its state !ut HTML contros "oesn#t retain
its state
% SessionA computer cookieis a small fle no larger than our kilobytes used by Web sitesto log visitors to and rom the site. Web sites download a cookie that collects andstores inormation or use later.ASP.NET has ists own controls ASP.NET is an event driven !rograming language
ASP.NET is event driven language means "n com!uter !rogramming event#driven!rogramming is a !rogramming !aradigm in which the $ow o the !rogram
-
7/23/2019 ASP.net Review Class
2/8
is determined by events such as user actions %mouse clicks key !resses& sensor
out!uts or messages rom other programs'threads.
$nitia page oa"%&
Post 'ack%&means when you reload the same page again and again
State Management an" ASP.NET page Li(e C)ce
Session State%&
ASP.Net Appication eve
At the Application level +Application start,
Page level +E#ample- page load,
!ontrol level +E#ample button clic*,
Session state is generally used for storing application data such as inventory%supplier
list% customer record% or shopping cart. )t can also *eep information about the user
and his preferences% and *eep the trac* of pending operations.
Session Mo"e
T*ir" Server
S+L Server whatever it will be stored in the data base, S+L server can !e use"t*e on) pro!em o( t*is is w*en we reuest
As soon as you login to the web application get stored in to session obect% onceyou log out from the web application the session deletes the login data from thememory
How "o Hackers use t*e weak si"e o( a session%&if the session is not properlydone hac*ers can access the webpage without login to the system% generallysession is very important to secure your web application/
-e! orm-0 is a collection of web servers were the servers are designed to provideservice for any re&uest send to the web form based on the condition of the networ*%if a re&uest is made to a busy server in the web form another server with in the webform provides service to the re&uest.
Loa" !aancingis in case of one server is busy you another server providesservice to the re&uest
Virtuai/ation
ASP.NET Page Li(e C)ce
-
7/23/2019 ASP.net Review Class
3/8
-e! Server
Page $nit 0Page $nitiai/ation1%&1uring Page )nit All the ASP.NET
controllers get initiali2e and the View Stategenerates some 3.4bitencryption% it add some encrypted te#t that will be putted in to the view state
Pase Loa"% & 1uring Page (oad it assign any value to your Page 2en"er%&
Page 3noa"%&
State Management an" ASP.NETpage (ife !ycle are the two important termswhich are common in ASP.NET ob interview
ASP.NET Page (ife !ycle
"hen a page is re&uested% it is loaded into the server memory% processed% and
sent to the browser. Then it is unloaded from the memory. At each of these steps%
methods and events are available% which could be overridden according to the
need of the application. )n other words% you can write your own code to override
the default code.
The Page class creates a hierarchical tree of all the controls on the page. All the
components on the page% e#cept the directives% are part of this control tree. 5ou
can see the control tree by adding trace6 7true7 to the page directive. "e will
cover page directives and tracing under 8directives8 and 8event handling8.
The page life cycle phases are-
)nitiali2ation
)nstantiation of the controls on the page
9estoration and maintenance of the state
E#ecution of the event handler codes
Page rendering:nderstanding the page cycle helps in writing codes for ma*ing some speci;c
thing happen at any stage of the page life cycle. )t also helps in writing custom
controls and initiali2ing them at right time% populate their properties with view0
state data and run control behavior code.
-
7/23/2019 ASP.net Review Class
4/8
Page reuest0 "hen ASP.NET gets a page re&uest% it decides whether to
parse and compile the page% or there would be a cached version of the
page= accordingly the response is sent.
Starting o( page i(e c)ce 0 At this stage% the 9e&uest and 9esponseobects are set. )f the re&uest is an old re&uest or post bac*% the )sPost>ac*
property of the page is set to true. The !ulture property of the page is also
set.
Page initiai/ation0 At this stage% the controls on the page are assigned
uni&ue )1 by setting the :ni&ue)1 property and the themes are applied.
-
7/23/2019 ASP.net Review Class
5/8
Pre$nit0 Pre)nit is the ;rst event in page life cycle. )t chec*s the )sPost>ac*
property and determines whether the page is a postbac*. )t sets the themes
and master pages% creates dynamic controls% and gets and sets pro;le
property values. This event can be handled by overloading the ?nPre)nit
method or creating a Page@Pre)nit handler.
$nit0 )nit event initiali2es the control property and the control tree is built.
This event can be handled by overloading the ?n)nit method or creating a
Page@)nit handler.
$nitCompete0 )nit!omplete event allows trac*ing of view state. All the
controls turn on view0state trac*ing.
Loa"ViewState0 (oadiewState event allows loading view state
information into the controls.
Loa"Post4ata0 1uring this phase% the contents of all the input ;elds are
de;ned with the formB tag are processed.
PreLoa"0 Pre(oad occurs before the post bac* data is loaded in the
controls. This event can be handled by overloading the ?nPre(oad method
or creating a Page@Pre(oad handler.
Loa"0 The (oad event is raised for the page ;rst and then recursively for all
child controls. The controls in the control tree are created. This event can be
handled by overloading the unloads method or creating a Page (oad
handler.
Loa" Compete0 The loading process is completed% control event handlers
are run% and page validation ta*es place. This event can be handled by
overloading the ?n(oad!omplete method or creating a Page@(oad!omplete
handler
Preten"er0 The Pre9ender event occurs ust before the output is rendered.
>y handling this event% pages and controls can perform any updates before
the output is rendered.
Pre2en"erCompete0 As the Pre9ender event is recursively ;red for all
child controls% this event ensures the completion of the pre0rendering phase.
-
7/23/2019 ASP.net Review Class
6/8
SaveStateComplete0 State of control on the page is saved.
Personali2ation% control state and view state information is saved. The 'TM(
mar*up is generated. This stage can be handled by overriding the 9ender
method or creating a Page@9ender handler.
UnLoad0 The :n(oad phase is the last phase of the page life cycle. )t raises
the :n(oad event for all controls recursively and lastly for the page itself.
-
7/23/2019 ASP.net Review Class
7/8
D ?nce you have your resume pleas (ay0?ut 1etailed attention totypography
D proofread each line till you are convinced
D Show your resume to your trainer or recruiter
D Must prepare companion stories of your resume
D *eep all your resumes correctly labeled and double chec* beforesubmitting. +'owever donFt save your resumes asJohndoe'ealthcare9esume.doc or Johndoe
-
7/23/2019 ASP.net Review Class
8/8
MA25ET$N6 P27CESS
C7NS3LTANT&&&&&MA25ETE2&&&&&&&VEN472&&&&&&&&&EN4&CL$ENT
List o( Marketing Companies%&
8cetec*
Enterprise 'usiness Soutions
$n(oSpan
S)nc*ronis)s
Concepts$T
Tec*igent
'$S 0'usiness $nteigence Soutions1
Meritek
top related