Home All Groups Group Topic Archive Search About

Dynamically Add FilterExpression and FilterParameters

Author
10 Jan 2006 1:27 PM
Mariela Donkova
Hi everyone ,
How to add dynamically from code  FilterExpression and FilterParameters.
I have 5 dropdownlists and if some of them or all are enabled a would like
to  filter The ObjectDataSource. by SelectedValues of enabled ones. If all
dropdownlists are disabled Filter is Ignored

Author
31 Jan 2006 10:19 PM
davstd
Mariela Donkova wrote:
> *Hi everyone ,
> How to add dynamically from code  FilterExpression and > FilterParameters.
> I have 5 dropdownlists and if some of them or all are enabled a would > like
> to  filter The ObjectDataSource. by SelectedValues of enabled ones. > If all
> dropdownlists are disabled Filter is Ignored *


Set the property this.SqlDataSource1.EnableViewState = false;
and the code work well

by
dav -- davstd ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------