Databinding problem

Total Post:149

 1082  View(s)
Rate this:

Is it possible to do data binding on the fields of an object just like in WPF?

Something like this:

<TextBlock Text="{Binding ElementName=lbColor}" />

just for an asp:TextBox element. What I want is that on submit to have the new values inside the binded object and I don't want to manually read and set the values.

  1. Post:378

    Re: Databinding problem

    Hi Royce, 

    if you are binding in a template you can use:

    <asp:textbox Text="<%#Bind("lbColor")%>" runat="server" />