Home > DeveloperSection > Forums > Databinding problem
Royce Roy
Royce Roy

Total Post:134

Points:938
Posted on    August-27-2014 2:03 AM

 ASP.Net
Ratings:


 1 Reply(s)
 661  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.



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-27-2014 11:21 PM

Hi Royce, 

if you are binding in a template you can use:

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


Don't want to miss updates? Please click the below button!

Follow MindStick