Simple Data Binding In ASP.NET

In this example, we will bind some elements. By changing the value of one affects the value of another dynamically.
  • Create a new project and add a slider, textblock, and progressbar.
     
    Animation DataBinding
     
  • Now first bind the progressbar with the slider, for this, we have to bind the value attribute of progressbar with the value attribute of the slider.
     
    Animation DataBinding
     
  • Now also bind the textblock’s text attribute with the slider’s value attribute. After the successful binding, the small indicator will turn into yellow
     
    Animation DataBinding
     
    And textblock value will be 0.
     
    Animation DataBinding
     
  • Now run the project and see the binding in action.
     
    Animation DataBinding
Source Code.