Hi Everyone,
I'm trying to set values using checkbox control inside SelectCommand.
For example:
checked = open
unchecked = close + open or any value
The 'checked' seems to be working fine but having an issue to fix the 'unchecked' part.
SelectCommand="SELECT * FROM [table1] WHERE CurrentStatus = case when @ShowOpenClose = 1 then 'open' else 'closed' end ORDER BY [srid] DESC"
<asp:ControlParameter ControlID="CheckBox_ShowOpenClose" PropertyName="Checked" Name="ShowOpenClose" />
Can you please help?
Many Thanks,
Perry