CheckBox checkchanged event not firing correctly

rated by 0 users
Not Answered This post has 0 verified answers | 0 Replies | 1 Follower

Dave
Top 10 Contributor
2,282 Posts
Points 14,405
MVPs
By: Dave
Posted: Fri, Jul 25 2008 2:42 AM

I have a checkbox on my page like so:

<CSControl:ConditionalContent runat="server">
    <ContentConditions><CSControl:UserPropertyValueComparison runat="server" UseAccessingUser="true" ComparisonProperty="IsAnonymous" Operator="IsSetOrTrue" /></ContentConditions>
    <FalseContentTemplate>
        <asp:CheckBox runat="server" ID="UnReadOnlyCheckBox" Checked="<%# UnReadOnly %>" Text="Show unread topics only?" AutoPostBack="true" OnCheckedChanged="UnReadOnlyCheckBox_CheckedChanged" />
    </FalseContentTemplate>
</CSControl:ConditionalContent>

protected void UnReadOnlyCheckBox_CheckedChanged(object sender, EventArgs e)
{
    // do stuff
}

For some reason the event is only fire when the checkbox is checked, it doesn't fire when unchecked. Can anyone shed any light on this, it works fine on a normal asp.net page. I've tried it with viewstate on but still not working

 
  • Post Points: 5 |

All Replies

Page 1 of 1 (1 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com