Upload
bond291982
View
228
Download
1
Embed Size (px)
Citation preview
8/13/2019 ASP.Net AJAX for Beginners
1/28
ASP.NET AJAX
Directi
Presenter : Viral Patel
Date : 16 09- 2009
8/13/2019 ASP.Net AJAX for Beginners
2/28
Prereq isites
AJAX : A synchronous Javascript A nd XMLWithout AJAX, GET/POST re uest is sent to server
!hich resu"ts in re#reshin$ entire pa$e
With AJAX, a %avascript #unction ca""s a server script in &ac'$round( !hich resu"ts in re#reshin$ speci#ic re$ion o# a pa$e the &ac'$round script returns response in XML *
Advanta$es: )*proved and uic' responsive user e+perience E##iciency o# !e& app"ication
8/13/2019 ASP.Net AJAX for Beginners
3/28
ASP.NET AJAX !ra"e#$r%
Servero*ponents
"ient SideScript Li&raries
AJAXontro"Too"'it
%-ueryLi&rary
8/13/2019 ASP.Net AJAX for Beginners
4/28
PA&T - ' : Ser(er )$"*$nents
8/13/2019 ASP.Net AJAX for Beginners
5/28
8/13/2019 ASP.Net AJAX for Beginners
6/28
Ser(er )$ntr$ls ScriptMana$er .pdatePane"
ontro" E+tenders
8/13/2019 ASP.Net AJAX for Beginners
7/28
ScriptMana$er Mana$es ASP( ET AJAX script "i&raries and script #i"es,
partia"0pa$e renderin$, and c"ient pro+y c"ass $eneration#or We& and app"ication services(
The contro" *ana$es a"" ASP( ET AJAX resources on a pa$e
.pdatePane" Ena&"es sections o# a pa$e to &e partia""y rendered !ithout a post&ac'( They are used !ith the ScriptMana$er contro" to ena&"e partia"0pa$e
renderin$(
Ser(er )$ntr$ls
8/13/2019 ASP.Net AJAX for Beginners
8/28
De"$ 1 : Ser(er )$ntr$ls
1e*o ontents
.se o# ScriptMana$er, .pdatePane"han$es in Source ode 2!ith AJAX3
.pdatePro$ress
8/13/2019 ASP.Net AJAX for Beginners
9/28
Partial-*a e ren erin $(er(ie#
0 ScriptMana$er server contro"0 Pa$e4e uestMana$er c"ass 5 "ient
!ith an asynchronous post&ac', pa$e updates are "i*ited to re$ions o# the pa$e thatare enc"osed in .pdatePane" contro"s and that are *ar'ed to &e updated( The serversends 6TML *ar'up #or on"y the a##ected e"e*ents to the &ro!ser( )n the &ro!ser, thec"ient Pa$e4e uestMana$er c"ass per#or*s 1ocu*ent O&%ect Mode" 21OM3*anipu"ation to rep"ace e+istin$ 6TML !ith updated *ar'up(
8/13/2019 ASP.Net AJAX for Beginners
10/28
Partial Pa e &en erin ScriptManager 27 8 on"y 7 per pa$e3 Ena&"ePartia"4enderin$ 9 true 2de#au"t3
markup-enabledproperties
code-onlyproperties
public codemethods
markupdescendants
A""o! usto*Errors4edirect AuthenticationService Set ocus2strin$3 ;AuthenticationService