not possible because the GridView's page & sorting functions also use
PostBack!
"Phillip Williams" <> wrote in message
news:0CBC1454-FC8F-4A1D-A506-...
> Databind during the page_load only if not Page.IsPostBack.
> --
> HTH,
> Phillip Williams
> http://www.societopia.net
> http://www.webswapp.com
>
>
> "Daves" wrote:
>
>> a GridView control iterates users in my database and below it there are
>> search fields and Search button which applies filter expression to the
>> SqlDataSource.
>>
>> The GridView is manually databound in the Page_Load event and I also
>> persist
>> this databinding since the GridView uses postback since it users paging
>> and
>> sorting options. Now, if the Search button is used, it's OnClick event is
>> run *AFTER* the Page_Load event so if I use it, I am actually databinding
>> twice!
>>
>> Is there some way for me to check in the Page_Load if the Search button
>> was
>> used or how can I handle this situation?
>>
>>
>>