PerformSelect needs SelectParameter?

Posts   
 
    
pandu avatar
pandu
User
Posts: 86
Joined: 18-May-2006
# Posted on: 30-Oct-2006 07:58:25   

I have the 17th Oct Build and I have problem with PerformSelect of LLBLGenDataSource2.

It is not firing without a SelectParameter. Also it fires only when the SelectParameter changes.

Is it by design? If so, what should I do If I want to make the PeformSelect fire for every Postback?

In my case, I do not need to use SelectParameter since I do this:

FetchEntityCollection(e.ContainedCollection, Filter)

Thanks.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 30-Oct-2006 08:31:53   

To ensure fresh data from the database. is retrieved, a flag on the LLBLGenProDataSourceControl2 called Refetch can be set to true, so the DefaultView will refetch the data.

Also you should be using the <SelectParameters>, which can retrieve values from other controls, forms, cookies or other objects supported by the SelectParameters feature of ASP.NET 2.0.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 30-Oct-2006 09:49:57   

Yet another way is to set the FilterToUse property. This will make the datasourcecontrol load the data again.

Frans Bouma | Lead developer LLBLGen Pro