DATABINDING PROBLEM

Royce Roy

Total Post:149

Points:1043
Posted by  Royce Roy
 864  View(s)
Ratings:
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. Sumit Kesarwani

    Post:378

    Points:2694
    Re: Databinding problem

    Hi Royce, 


    if you are binding in a template you can use:

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!