Databinding

Posts   
 
    
MikeG
User
Posts: 23
Joined: 17-Dec-2006
# Posted on: 27-Jan-2007 08:21:43   

Hi,

Can you please share with me what are the best ways to do databinding on ASP.NET controls?

I am confused confused and LEARNING simple_smile smile wink stuck_out_tongue_winking_eye sunglasses

Thank you, Mike

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 27-Jan-2007 08:43:33   

Please look at our ASP.NET example application HnD, http://www.llblgen.com/HnD Databinding in one-way scenario's: simply bind the object (collection, typedlist etc.) to the grid/control Databinding in two-way scenario's: use the LLBLGenProDataSource(2) controls (the '2' version for adapter).

See for example in the HnD application (which is this forum wink ) the page GUI\Admin\ManageSupportQueues.aspx. This page uses a datasourcecontrol for 2-way databinding.

Also see the documentation: USing the generated code -> Adapter/selfservicing -> Databinding at design time and runtime -> Databinding with ASP.NET 2.0

Frans Bouma | Lead developer LLBLGen Pro