I want then LLBLGenProDataSource2 do not perfrom a select when the page load first time,that is the Page.IsPostbakc=false.
There are some controls in my page to create a filter for the datasource control.I want the datasource control execute a select action only when I click a "Query" button.When the page load for the first time(not postback),I want the datasource control do nothing.
As the mess data in db,if no filter use,the page will load slowly.That's what I not want.
Is there such a property for LLBLGenProDataSource2 like "Enable" I can use for
Page_Load()
{
if(!IsPostBack)
{
datasource.Enable=false;//Should do nothing
}
else
{
//perform a select action
}
}
And at current,I have to use a absolutely "False" filter such as "1=2" and so on to perform this function.