web form controls databinding

Posts   
 
    
jookyone avatar
jookyone
User
Posts: 104
Joined: 25-Jan-2005
# Posted on: 31-Jan-2005 18:54:17   

In the LLBLGen Pro help documentation it states that when a control is databound, any changes to the value in the control (i.e. Textbox) are automatically reflected in the underlying datasource. What would be the proper way to bind an entity to a control on the page so that when the value is changed it will update the underlying datasource? For example, I would want a textbox on the page that is bound to ApplicationEntity.FirstName.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 31-Jan-2005 20:07:39   

Databinding in a webform is not 2-way, i.e.: you can bind to controls to fill them with data, but you can't transfer the data back to the object when teh user fills in some data on html controls. This is due to the fact that ASP.NET doesn't work that way.

Frans Bouma | Lead developer LLBLGen Pro