Using a ControlParameter in FilterParameters when the property is null

Posted by end-user on Stack Overflow See other posts from Stack Overflow or by end-user
Published on 2010-04-21T18:39:41Z Indexed on 2010/04/21 18:43 UTC
Read the original article Hit count: 294

I have a DataList and FormView; they have separate datasources, though they pull the same info. The FormView's datasource has a FilterExpression to pull whatever's been selected on the DataList. On first load, the SelectedValue of the DataList is null (naturally). I expect the FilterExpression to result in zero rows, but it doesn't. If I set the DefaultValue to 0, it does, but then the parameter never updates when I select something from the DataList. Am I doing it wrong?

© Stack Overflow or respective owner

Related posts about controlparameter

Related posts about null