bind 2 dropdownlist to same llblgendatasource

Posts   
 
    
bunzee
User
Posts: 84
Joined: 20-Mar-2007
# Posted on: 16-Apr-2015 09:43:36   

Hi

llblgen 2.5 asp.net 3.5

I have a need to bind 2 dropdownlist to the same single llblgen datasource. However whenever the 2nd dropdownlist is binded the llblgen datasource I got the following error.

Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

QUESTION Does llblgen allows to bind 2 dropdownlist to the same llblgen datasource?

Thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 16-Apr-2015 13:05:56   
Frans Bouma | Lead developer LLBLGen Pro
bunzee
User
Posts: 84
Joined: 20-Mar-2007
# Posted on: 16-Apr-2015 23:39:34   

Hi Otis

It turned out that yes 2 dropdownlists can be bound to the same llblgendatasource. The reason that it failed before was because the Cache property of the datasource was set to none. When it was set to "session" then it works OK. Thanks.