SlideShare une entreprise Scribd logo
1  sur  11
Télécharger pour lire hors ligne
DATA BINDING
M I C R O S O F T B L A Z O R
INTR ODUC TION
o Data binding is a mechanism in Blazor that allows
you to establish a connection between the
application’s data and the User Interface
o Enables the successful data synchronization
o There are five main types of data binding:
o One-way data-binding
o Two-way data-binding
o Event Binding
o Form Binding
O N E - WAY DATA - BIN DING
o Provides one way communication between UI and code
o Does not allow dynamic changes based on changes in the code.
Whatever you state in your code will be reflected in your UI
o If user makes any update in UI, it does not propagate back to the
code
o There are two methods of one-way data-binding:
o Using @ syntax
o Using Bind Attribute
O N E - WAY DATA - BIN DING
o We use @ symbol to get the value from the code to the UI.
o We generally use this method to bind @code part of the code with
@page part of the markup.
O N E - WAY DATA - BIN DING
o We use @bind-value attributes such as @bind-value and @bind-
values to save or fetch data from other components or resources.
o This can include saving the information into the database, getting
the information from the database, displaying the information
present inside the database.
O N E - WAY DATA - BIN DING
T W O - WAY DATA - BIN DING
o Used to perform bi-directional data flow
o It is commonly used with form elements, such as textboxes,
checkboxes and other element, maintaining a synchronized state
o The two-way data-binding uses @bind directive to perform the
communication, typically applied to the value attribute of an input
element
o Simplifies the process of handling user inputs and keeping the UI
and application process synchronized
T W O - WAY DATA - BIN DING
o Used to perform bi-directional data flow
o It is commonly used with form elements, such as textboxes,
checkboxes and other element, maintaining a synchronized state
o The two-way data-binding uses @bind directive to perform the
communication, typically applied to the value attribute of an input
element
o Simplifies the process of handling user inputs and keeping the UI
and application process synchronized
T W O - WAY DATA - BIN DING
EVEN T BI NDIN G
o Event binding refers to the process of associating C# methods with
multiple HTML events
o This mechanism enables you to handle events such as button
clicks, mouse movements, and keyboard inputs, making the web
application interactive and responsive
o This includes @onclick, @oninput, @onchange, @onmouseover
etc.
FORM BIN DING
o Form binding refers to the process of associating a Blazor
components with the HTML form and handling form submissions
o Uses the Blazor’s in-built feature “EditForm” that simplifies the
implementation of form-related functionality
o This also helps in form-related functionality, including model
binding, validation and event handling

Contenu connexe

Similaire à #5 | Data Binding | Microsoft Blazor | Sameer Siddiqui

Gouthami Resume(2)
Gouthami Resume(2)Gouthami Resume(2)
Gouthami Resume(2)
gouthami02
 
Data Exchange Design with SDMX Format for Interoperability Statistical Data
Data Exchange Design with SDMX Format for Interoperability Statistical DataData Exchange Design with SDMX Format for Interoperability Statistical Data
Data Exchange Design with SDMX Format for Interoperability Statistical Data
Nooria Sukmaningtyas
 

Similaire à #5 | Data Binding | Microsoft Blazor | Sameer Siddiqui (20)

Open Data Convergence
Open Data ConvergenceOpen Data Convergence
Open Data Convergence
 
"Taming the Dragon": Data Flow Programming with Zenoh-Flow
"Taming the Dragon": Data Flow Programming with Zenoh-Flow"Taming the Dragon": Data Flow Programming with Zenoh-Flow
"Taming the Dragon": Data Flow Programming with Zenoh-Flow
 
Real Time Head Generation for Video Conferencing
Real Time Head Generation for Video ConferencingReal Time Head Generation for Video Conferencing
Real Time Head Generation for Video Conferencing
 
UNIT 3 web iiiBCA.pptx
UNIT 3 web iiiBCA.pptxUNIT 3 web iiiBCA.pptx
UNIT 3 web iiiBCA.pptx
 
Angular crash course
Angular crash courseAngular crash course
Angular crash course
 
Angular js- 1.X
Angular js- 1.XAngular js- 1.X
Angular js- 1.X
 
Real-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet AppReal-time Text Audio to Video PPT Converter Tablet App
Real-time Text Audio to Video PPT Converter Tablet App
 
Gouthami Resume(2)
Gouthami Resume(2)Gouthami Resume(2)
Gouthami Resume(2)
 
Angular js 1.3 presentation for fed nov 2014
Angular js 1.3 presentation for fed   nov 2014Angular js 1.3 presentation for fed   nov 2014
Angular js 1.3 presentation for fed nov 2014
 
IEEE Projects 2013 For ME Cse @ Seabirds ( Trichy, Thanjavur, Perambalur, Di...
IEEE Projects 2013 For ME Cse @  Seabirds ( Trichy, Thanjavur, Perambalur, Di...IEEE Projects 2013 For ME Cse @  Seabirds ( Trichy, Thanjavur, Perambalur, Di...
IEEE Projects 2013 For ME Cse @ Seabirds ( Trichy, Thanjavur, Perambalur, Di...
 
Webinar: APPSeCONNECT Product Release 2018 - A Sneak Peek at Cloud Integration
Webinar: APPSeCONNECT Product Release 2018 - A Sneak Peek at Cloud IntegrationWebinar: APPSeCONNECT Product Release 2018 - A Sneak Peek at Cloud Integration
Webinar: APPSeCONNECT Product Release 2018 - A Sneak Peek at Cloud Integration
 
Data Convergence White Paper
Data Convergence White PaperData Convergence White Paper
Data Convergence White Paper
 
BLOCKCHAIN IMPLEMENTATION IN EDUCATIONAL SYSTEM
BLOCKCHAIN IMPLEMENTATION IN EDUCATIONAL SYSTEMBLOCKCHAIN IMPLEMENTATION IN EDUCATIONAL SYSTEM
BLOCKCHAIN IMPLEMENTATION IN EDUCATIONAL SYSTEM
 
Services and Linked Data: John Domingue (KMi, UK)
Services and Linked Data: John Domingue (KMi, UK)Services and Linked Data: John Domingue (KMi, UK)
Services and Linked Data: John Domingue (KMi, UK)
 
Data Exchange Design with SDMX Format for Interoperability Statistical Data
Data Exchange Design with SDMX Format for Interoperability Statistical DataData Exchange Design with SDMX Format for Interoperability Statistical Data
Data Exchange Design with SDMX Format for Interoperability Statistical Data
 
UNICORN PROJECT - PAGE BROCHURE
UNICORN PROJECT - PAGE BROCHUREUNICORN PROJECT - PAGE BROCHURE
UNICORN PROJECT - PAGE BROCHURE
 
IEEE Projects 2013 For ME Cse Seabirds ( Trichy, Thanjavur, Karur, Perambalur )
IEEE Projects 2013 For ME Cse Seabirds ( Trichy, Thanjavur, Karur, Perambalur )IEEE Projects 2013 For ME Cse Seabirds ( Trichy, Thanjavur, Karur, Perambalur )
IEEE Projects 2013 For ME Cse Seabirds ( Trichy, Thanjavur, Karur, Perambalur )
 
Bulk Ieee Projects 2013 @ Seabirds ( Chennai, Trichy, Hyderabad, Pune, Mumbai )
Bulk Ieee Projects 2013 @ Seabirds ( Chennai, Trichy, Hyderabad, Pune, Mumbai )Bulk Ieee Projects 2013 @ Seabirds ( Chennai, Trichy, Hyderabad, Pune, Mumbai )
Bulk Ieee Projects 2013 @ Seabirds ( Chennai, Trichy, Hyderabad, Pune, Mumbai )
 
Ieee projects-2013-2014-title-list-for-me-be-mphil-final-year-students
Ieee projects-2013-2014-title-list-for-me-be-mphil-final-year-studentsIeee projects-2013-2014-title-list-for-me-be-mphil-final-year-students
Ieee projects-2013-2014-title-list-for-me-be-mphil-final-year-students
 
Ieee Projects 2013 for Cse @ Seabirds(Trichy, Pudukkottai, Perambalur, Thanja...
Ieee Projects 2013 for Cse @ Seabirds(Trichy, Pudukkottai, Perambalur, Thanja...Ieee Projects 2013 for Cse @ Seabirds(Trichy, Pudukkottai, Perambalur, Thanja...
Ieee Projects 2013 for Cse @ Seabirds(Trichy, Pudukkottai, Perambalur, Thanja...
 

Dernier

Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 

Dernier (20)

Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptxCyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
 
AI mind or machine power point presentation
AI mind or machine power point presentationAI mind or machine power point presentation
AI mind or machine power point presentation
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptx
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 

#5 | Data Binding | Microsoft Blazor | Sameer Siddiqui

  • 1. DATA BINDING M I C R O S O F T B L A Z O R
  • 2. INTR ODUC TION o Data binding is a mechanism in Blazor that allows you to establish a connection between the application’s data and the User Interface o Enables the successful data synchronization o There are five main types of data binding: o One-way data-binding o Two-way data-binding o Event Binding o Form Binding
  • 3. O N E - WAY DATA - BIN DING o Provides one way communication between UI and code o Does not allow dynamic changes based on changes in the code. Whatever you state in your code will be reflected in your UI o If user makes any update in UI, it does not propagate back to the code o There are two methods of one-way data-binding: o Using @ syntax o Using Bind Attribute
  • 4. O N E - WAY DATA - BIN DING o We use @ symbol to get the value from the code to the UI. o We generally use this method to bind @code part of the code with @page part of the markup.
  • 5. O N E - WAY DATA - BIN DING o We use @bind-value attributes such as @bind-value and @bind- values to save or fetch data from other components or resources. o This can include saving the information into the database, getting the information from the database, displaying the information present inside the database.
  • 6. O N E - WAY DATA - BIN DING
  • 7. T W O - WAY DATA - BIN DING o Used to perform bi-directional data flow o It is commonly used with form elements, such as textboxes, checkboxes and other element, maintaining a synchronized state o The two-way data-binding uses @bind directive to perform the communication, typically applied to the value attribute of an input element o Simplifies the process of handling user inputs and keeping the UI and application process synchronized
  • 8. T W O - WAY DATA - BIN DING o Used to perform bi-directional data flow o It is commonly used with form elements, such as textboxes, checkboxes and other element, maintaining a synchronized state o The two-way data-binding uses @bind directive to perform the communication, typically applied to the value attribute of an input element o Simplifies the process of handling user inputs and keeping the UI and application process synchronized
  • 9. T W O - WAY DATA - BIN DING
  • 10. EVEN T BI NDIN G o Event binding refers to the process of associating C# methods with multiple HTML events o This mechanism enables you to handle events such as button clicks, mouse movements, and keyboard inputs, making the web application interactive and responsive o This includes @onclick, @oninput, @onchange, @onmouseover etc.
  • 11. FORM BIN DING o Form binding refers to the process of associating a Blazor components with the HTML form and handling form submissions o Uses the Blazor’s in-built feature “EditForm” that simplifies the implementation of form-related functionality o This also helps in form-related functionality, including model binding, validation and event handling