SlideShare a Scribd company logo
1 of 13
WELCOME
TO
ASP.NET Tutorials
on
Ajax Control
• AJAX stands for Asynchronous JavaScript and XML. This is a cross
platform technology which speeds up response time. The AJAX
server controls add script to the page which is executed and
processed by the browser.
• However like other ASP.NET server controls, these AJAX server
controls also can have methods and event handlers associated
with them, which are processed on the server side.
• The control toolbox in the Visual Studio IDE contains a group of
controls called the 'AJAX Extensions'
The ScriptManager Control
• The ScriptManager control is the most important control and
must be present on the page for other controls to work.
• It has the basic syntax:
• <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
• If you create an 'Ajax Enabled site' or add an 'AJAX Web Form'
from the 'Add Item' dialog box, the web form automatically
contains the script manager control.
• The ScriptManager control takes care of the client-side script for
all the server side controls.
The UpdatePanel Control
• The UpdatePanel control is a container control and derives from
the Control class. It acts as a container for the child controls
within it and does not have its own interface.
• When a control inside it triggers a post back, the UpdatePanel
intervenes to initiate the post asynchronously and update just
that portion of the page.
• For example, if a button control is inside the update panel and it
is clicked, only the controls within the update panel will be
affected, the controls on the other parts of the page will not be
affected. This is called the partial post back or the asynchronous
post back.
Properties Description
ChildrenAsTriggers This property indicates whether the post backs are coming from the
child controls, which cause the update panel to refresh.
ContentTemplate It is the content template and defines what appears in the update panel
when it is rendered.
ContentTemplateContainer Retrieves the dynamically created template container object and used
for adding child controls programmatically.
IsInPartialRendering Indicates whether the panel is being updated as part of the partial post
back.
RenderMode Shows the render modes. The available modes are Block and Inline.
UpdateMode Gets or sets the rendering mode by determining some conditions.
Triggers Defines the collection trigger objects each corresponding to an event
causing the panel to refresh automatically.
Methods Description
CreateContentTemplateContainer Creates a Control object that acts as a container
for child controls that define the UpdatePanel
control's content.
CreateControlCollection Returns the collection of all controls that are
contained in the UpdatePanel control.
Initialize Initializes the UpdatePanel control trigger
collection if partial-page rendering is enabled.
Update Causes an update of the content of an
UpdatePanel control.
UpdateMode ChildrenAsTriggers Effect
Always False Illegal parameters.
Always True UpdatePanel refreshes if whole page refreshes or a
child control on it posts back.
Conditional False UpdatePanel refreshes if whole page refreshes or a
triggering control outside it initiates a refresh.
Conditional True UpdatePanel refreshes if whole page refreshes or a
child control on it posts back or a triggering control
outside it initiates a refresh.
The UpdateProgress Control
• The UpdateProgress control provides a sort of feedback on the
browser while one or more update panel controls are being updated.
For example, while a user logs in or waits for server response while
performing some database oriented job.
• It provides a visual acknowledgement like "Loading page...", indicating
the work is in progress.
• The syntax for the UpdateProgress control is:
• <asp:UpdateProgress ID="UpdateProgress1" runat="server"
DynamicLayout="true" AssociatedUpdatePanelID="UpdatePanel1" >
<ProgressTemplate> Loading... </ProgressTemplate>
</asp:UpdateProgress>
Properties of the UpdateProgress Control
Properties Description
AssociatedUpdatePanelID Gets and sets the ID of the update panel with which this control
is associated.
Attributes Gets or sets the cascading style sheet (CSS) attributes of the
UpdateProgress control.
DisplayAfter Gets and sets the time in milliseconds after which the progress
template is displayed. The default is 500.
DynamicLayout Indicates whether the progress template is dynamically
rendered.
ProgressTemplate Indicates the template displayed during an asynchronous post
back which takes more time than the DisplayAfter time.
Methods of the UpdateProgress Control
Methods Description
GetScriptD
escriptors
Returns a list of
components, behaviors, and
client controls that are
required for the
UpdateProgress control's
client functionality.
GetScriptR
eferences
Returns a list of client script
library dependencies for the
UpdateProgress control.
The Timer Control
• The timer control is used to initiate the post back automatically. This could be
done in two ways:
• (1) Setting the Triggers property of the UpdatePanel control:
• <Triggers> <asp:AsyncPostBackTrigger ControlID="btnpanel2"
EventName="Click" /> </Triggers> (
• 2) Placing a timer control directly inside the UpdatePanel to act as a child
control trigger. A single timer can be the trigger for multiple UpdatePanels.
• <asp:UpdatePanel ID="UpdatePanel1" runat="server"
UpdateMode="Always"> <ContentTemplate> <asp:Timer ID="Timer1"
runat="server" Interval="1000"> </asp:Timer> <asp:Label ID="Label1"
runat="server" Height="101px" style="width:304px" > </asp:Label>
</ContentTemplate> </asp:UpdatePanel>
Thank You
For more updates on C#, ASP.NET, MVC, JAVASCRIPT, HTML,
CSS tutorials subscribe to our YouTube channel
SIRYMEDIA
For more visit our website
www.sirymedia.in

More Related Content

What's hot

Presentation on Android application
Presentation on Android applicationPresentation on Android application
Presentation on Android applicationAtibur Rahman
 
android content providers
android content providersandroid content providers
android content providersDeepa Rani
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android StudioSuyash Srijan
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming BasicsEueung Mulyana
 
UBIQUITOUS COMPUTING - Mary M
UBIQUITOUS COMPUTING - Mary MUBIQUITOUS COMPUTING - Mary M
UBIQUITOUS COMPUTING - Mary MMary Margarat
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecturedeepakshare
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptxSundaresanB5
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivityAhsanul Karim
 
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
Android User Interface Tutorial: DatePicker, TimePicker & SpinnerAndroid User Interface Tutorial: DatePicker, TimePicker & Spinner
Android User Interface Tutorial: DatePicker, TimePicker & SpinnerAhsanul Karim
 
Context-Aware Computing
Context-Aware ComputingContext-Aware Computing
Context-Aware Computinglogus2k
 
6 mobile user interface design bb
6   mobile user interface design bb6   mobile user interface design bb
6 mobile user interface design bbShahid Riaz
 
Vision of cloud computing
Vision of cloud computingVision of cloud computing
Vision of cloud computinggaurav jain
 
android architecture
android architectureandroid architecture
android architectureAashita Gupta
 

What's hot (20)

Google App Engine
Google App EngineGoogle App Engine
Google App Engine
 
Android Widget
Android WidgetAndroid Widget
Android Widget
 
Presentation on Android application
Presentation on Android applicationPresentation on Android application
Presentation on Android application
 
android content providers
android content providersandroid content providers
android content providers
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android Studio
 
Fundamentals of Mobile App Development Technology
Fundamentals of Mobile App Development TechnologyFundamentals of Mobile App Development Technology
Fundamentals of Mobile App Development Technology
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming Basics
 
UBIQUITOUS COMPUTING - Mary M
UBIQUITOUS COMPUTING - Mary MUBIQUITOUS COMPUTING - Mary M
UBIQUITOUS COMPUTING - Mary M
 
Android Operating System Architecture
Android Operating System ArchitectureAndroid Operating System Architecture
Android Operating System Architecture
 
Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 
Android MapView and MapActivity
Android MapView and MapActivityAndroid MapView and MapActivity
Android MapView and MapActivity
 
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
Android User Interface Tutorial: DatePicker, TimePicker & SpinnerAndroid User Interface Tutorial: DatePicker, TimePicker & Spinner
Android User Interface Tutorial: DatePicker, TimePicker & Spinner
 
Android Platform Architecture
Android Platform ArchitectureAndroid Platform Architecture
Android Platform Architecture
 
Context-Aware Computing
Context-Aware ComputingContext-Aware Computing
Context-Aware Computing
 
6 mobile user interface design bb
6   mobile user interface design bb6   mobile user interface design bb
6 mobile user interface design bb
 
Asp.net
Asp.netAsp.net
Asp.net
 
Vision of cloud computing
Vision of cloud computingVision of cloud computing
Vision of cloud computing
 
Semantic Web
Semantic WebSemantic Web
Semantic Web
 
android architecture
android architectureandroid architecture
android architecture
 

Viewers also liked

Electronic data interchange
Electronic data interchangeElectronic data interchange
Electronic data interchangeRohit Kumar
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web FormsSAMIR BHOGAYTA
 
State Management in ASP.NET
State Management in ASP.NETState Management in ASP.NET
State Management in ASP.NETShyam Sir
 
Seminar ppt on digital signature
Seminar ppt on digital signatureSeminar ppt on digital signature
Seminar ppt on digital signaturejolly9293
 
Presentation - Electronic Data Interchange
Presentation - Electronic Data InterchangePresentation - Electronic Data Interchange
Presentation - Electronic Data InterchangeSharad Srivastava
 
ASP.NET State management
ASP.NET State managementASP.NET State management
ASP.NET State managementShivanand Arur
 
State management
State managementState management
State managementIblesoft
 
How to make more impact as an engineer
How to make more impact as an engineerHow to make more impact as an engineer
How to make more impact as an engineerPeter Gfader
 
Electronic data interchange
Electronic data interchangeElectronic data interchange
Electronic data interchangeAbhishek Nayak
 
Introduction To Asp.Net Ajax
Introduction To Asp.Net AjaxIntroduction To Asp.Net Ajax
Introduction To Asp.Net AjaxJeff Blankenburg
 
Presentation on asp.net controls
Presentation on asp.net controlsPresentation on asp.net controls
Presentation on asp.net controlsReshi Unen
 
Validation controls ppt
Validation controls pptValidation controls ppt
Validation controls pptIblesoft
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NETPeter Gfader
 
Validation controls in asp
Validation controls in aspValidation controls in asp
Validation controls in aspShishir Jain
 
State management in ASP.NET
State management in ASP.NETState management in ASP.NET
State management in ASP.NETOm Vikram Thapa
 

Viewers also liked (20)

Electronic data interchange
Electronic data interchangeElectronic data interchange
Electronic data interchange
 
Controls in asp.net
Controls in asp.netControls in asp.net
Controls in asp.net
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web Forms
 
Ajax and ASP.NET AJAX
Ajax and ASP.NET AJAXAjax and ASP.NET AJAX
Ajax and ASP.NET AJAX
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
 
State Management in ASP.NET
State Management in ASP.NETState Management in ASP.NET
State Management in ASP.NET
 
Seminar ppt on digital signature
Seminar ppt on digital signatureSeminar ppt on digital signature
Seminar ppt on digital signature
 
Presentation - Electronic Data Interchange
Presentation - Electronic Data InterchangePresentation - Electronic Data Interchange
Presentation - Electronic Data Interchange
 
ASP.NET State management
ASP.NET State managementASP.NET State management
ASP.NET State management
 
State management
State managementState management
State management
 
How to make more impact as an engineer
How to make more impact as an engineerHow to make more impact as an engineer
How to make more impact as an engineer
 
Asp.Net Control Architecture
Asp.Net Control ArchitectureAsp.Net Control Architecture
Asp.Net Control Architecture
 
Electronic data interchange
Electronic data interchangeElectronic data interchange
Electronic data interchange
 
Introduction To Asp.Net Ajax
Introduction To Asp.Net AjaxIntroduction To Asp.Net Ajax
Introduction To Asp.Net Ajax
 
Presentation on asp.net controls
Presentation on asp.net controlsPresentation on asp.net controls
Presentation on asp.net controls
 
Ch3 server controls
Ch3 server controlsCh3 server controls
Ch3 server controls
 
Validation controls ppt
Validation controls pptValidation controls ppt
Validation controls ppt
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Validation controls in asp
Validation controls in aspValidation controls in asp
Validation controls in asp
 
State management in ASP.NET
State management in ASP.NETState management in ASP.NET
State management in ASP.NET
 

Similar to Ajax control asp.net (20)

ASP.NET AJAX Basics
ASP.NET AJAX BasicsASP.NET AJAX Basics
ASP.NET AJAX Basics
 
Ajax
AjaxAjax
Ajax
 
Asp PPT (.NET )
Asp PPT (.NET )Asp PPT (.NET )
Asp PPT (.NET )
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
 
Chapter 25
Chapter 25Chapter 25
Chapter 25
 
Asp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentAsp.Net Ajax Component Development
Asp.Net Ajax Component Development
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
 
ASP.NET - Web Programming
ASP.NET - Web ProgrammingASP.NET - Web Programming
ASP.NET - Web Programming
 
SynapseIndia asp.net2.0 ajax Development
SynapseIndia asp.net2.0 ajax DevelopmentSynapseIndia asp.net2.0 ajax Development
SynapseIndia asp.net2.0 ajax Development
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
 
Asp.Net Page Life
Asp.Net Page LifeAsp.Net Page Life
Asp.Net Page Life
 
Intro react js
Intro react jsIntro react js
Intro react js
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
 
.Net course-in-mumbai-ppt
.Net course-in-mumbai-ppt.Net course-in-mumbai-ppt
.Net course-in-mumbai-ppt
 
Asp.net tips
Asp.net tipsAsp.net tips
Asp.net tips
 
A View about ASP .NET and their objectives
A View about ASP .NET and their objectivesA View about ASP .NET and their objectives
A View about ASP .NET and their objectives
 
Aspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_cs
 

More from Sireesh K (20)

Cn10
Cn10Cn10
Cn10
 
chanakya neeti
chanakya neetichanakya neeti
chanakya neeti
 
chanakya neeti
chanakya neetichanakya neeti
chanakya neeti
 
What is mvc
What is mvcWhat is mvc
What is mvc
 
31c
31c31c
31c
 
31cs
31cs31cs
31cs
 
45c
45c45c
45c
 
44c
44c44c
44c
 
43c
43c43c
43c
 
42c
42c42c
42c
 
41c
41c41c
41c
 
40c
40c40c
40c
 
39c
39c39c
39c
 
38c
38c38c
38c
 
37c
37c37c
37c
 
35c
35c35c
35c
 
34c
34c34c
34c
 
33c
33c33c
33c
 
30c
30c30c
30c
 
29c
29c29c
29c
 

Recently uploaded

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 

Recently uploaded (20)

THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 

Ajax control asp.net

  • 3. • AJAX stands for Asynchronous JavaScript and XML. This is a cross platform technology which speeds up response time. The AJAX server controls add script to the page which is executed and processed by the browser. • However like other ASP.NET server controls, these AJAX server controls also can have methods and event handlers associated with them, which are processed on the server side. • The control toolbox in the Visual Studio IDE contains a group of controls called the 'AJAX Extensions'
  • 4. The ScriptManager Control • The ScriptManager control is the most important control and must be present on the page for other controls to work. • It has the basic syntax: • <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> • If you create an 'Ajax Enabled site' or add an 'AJAX Web Form' from the 'Add Item' dialog box, the web form automatically contains the script manager control. • The ScriptManager control takes care of the client-side script for all the server side controls.
  • 5. The UpdatePanel Control • The UpdatePanel control is a container control and derives from the Control class. It acts as a container for the child controls within it and does not have its own interface. • When a control inside it triggers a post back, the UpdatePanel intervenes to initiate the post asynchronously and update just that portion of the page. • For example, if a button control is inside the update panel and it is clicked, only the controls within the update panel will be affected, the controls on the other parts of the page will not be affected. This is called the partial post back or the asynchronous post back.
  • 6. Properties Description ChildrenAsTriggers This property indicates whether the post backs are coming from the child controls, which cause the update panel to refresh. ContentTemplate It is the content template and defines what appears in the update panel when it is rendered. ContentTemplateContainer Retrieves the dynamically created template container object and used for adding child controls programmatically. IsInPartialRendering Indicates whether the panel is being updated as part of the partial post back. RenderMode Shows the render modes. The available modes are Block and Inline. UpdateMode Gets or sets the rendering mode by determining some conditions. Triggers Defines the collection trigger objects each corresponding to an event causing the panel to refresh automatically.
  • 7. Methods Description CreateContentTemplateContainer Creates a Control object that acts as a container for child controls that define the UpdatePanel control's content. CreateControlCollection Returns the collection of all controls that are contained in the UpdatePanel control. Initialize Initializes the UpdatePanel control trigger collection if partial-page rendering is enabled. Update Causes an update of the content of an UpdatePanel control.
  • 8. UpdateMode ChildrenAsTriggers Effect Always False Illegal parameters. Always True UpdatePanel refreshes if whole page refreshes or a child control on it posts back. Conditional False UpdatePanel refreshes if whole page refreshes or a triggering control outside it initiates a refresh. Conditional True UpdatePanel refreshes if whole page refreshes or a child control on it posts back or a triggering control outside it initiates a refresh.
  • 9. The UpdateProgress Control • The UpdateProgress control provides a sort of feedback on the browser while one or more update panel controls are being updated. For example, while a user logs in or waits for server response while performing some database oriented job. • It provides a visual acknowledgement like "Loading page...", indicating the work is in progress. • The syntax for the UpdateProgress control is: • <asp:UpdateProgress ID="UpdateProgress1" runat="server" DynamicLayout="true" AssociatedUpdatePanelID="UpdatePanel1" > <ProgressTemplate> Loading... </ProgressTemplate> </asp:UpdateProgress>
  • 10. Properties of the UpdateProgress Control Properties Description AssociatedUpdatePanelID Gets and sets the ID of the update panel with which this control is associated. Attributes Gets or sets the cascading style sheet (CSS) attributes of the UpdateProgress control. DisplayAfter Gets and sets the time in milliseconds after which the progress template is displayed. The default is 500. DynamicLayout Indicates whether the progress template is dynamically rendered. ProgressTemplate Indicates the template displayed during an asynchronous post back which takes more time than the DisplayAfter time.
  • 11. Methods of the UpdateProgress Control Methods Description GetScriptD escriptors Returns a list of components, behaviors, and client controls that are required for the UpdateProgress control's client functionality. GetScriptR eferences Returns a list of client script library dependencies for the UpdateProgress control.
  • 12. The Timer Control • The timer control is used to initiate the post back automatically. This could be done in two ways: • (1) Setting the Triggers property of the UpdatePanel control: • <Triggers> <asp:AsyncPostBackTrigger ControlID="btnpanel2" EventName="Click" /> </Triggers> ( • 2) Placing a timer control directly inside the UpdatePanel to act as a child control trigger. A single timer can be the trigger for multiple UpdatePanels. • <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always"> <ContentTemplate> <asp:Timer ID="Timer1" runat="server" Interval="1000"> </asp:Timer> <asp:Label ID="Label1" runat="server" Height="101px" style="width:304px" > </asp:Label> </ContentTemplate> </asp:UpdatePanel>
  • 13. Thank You For more updates on C#, ASP.NET, MVC, JAVASCRIPT, HTML, CSS tutorials subscribe to our YouTube channel SIRYMEDIA For more visit our website www.sirymedia.in