OnCheckedChanged won't fire when turning CheckBox OFF

Discussion in 'ASP .Net Web Controls' started by Chris Heinrich, Jul 2, 2003.

  1. I have inherited the CheckBox control. It used to work just fine. I just
    now noticed that when I turn an ON checkbox to OFF, the server does not seem
    to recognize that and it doesn't even trigger the OnCheckedChanged event
    handler. When I am going from OFF to ON, it works fine. But once the
    checkbox is on, I'm stuck. I have absolutely no idea how or when this
    started. I'm still on the original .NET framework and I have never made any
    changes to it. And I don't know what I could have introduced in my code to
    cause such unexpected behavior. Any ideas? Thanks
     
    Chris Heinrich, Jul 2, 2003
    #1
    1. Advertising

  2. I solved my problem. And the solution is worth noting.

    In my inherited CheckBox, I had overridden the OnPreRender event handler.
    But I neglected to call the base.OnPreRender(e), which seemed to be the
    problem.

    "Chris Heinrich" <> wrote in message
    news:...
    > I have inherited the CheckBox control. It used to work just fine. I just
    > now noticed that when I turn an ON checkbox to OFF, the server does not

    seem
    > to recognize that and it doesn't even trigger the OnCheckedChanged event
    > handler. When I am going from OFF to ON, it works fine. But once the
    > checkbox is on, I'm stuck. I have absolutely no idea how or when this
    > started. I'm still on the original .NET framework and I have never made

    any
    > changes to it. And I don't know what I could have introduced in my code

    to
    > cause such unexpected behavior. Any ideas? Thanks
    >
    >
     
    Chris Heinrich, Jul 2, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Homa
    Replies:
    3
    Views:
    14,868
    nchavan
    Jul 23, 2009
  2. Maziar Aflatoun

    asp checkbox checking for OnCheckedChanged value

    Maziar Aflatoun, Sep 5, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    23,243
    radu_m
    Dec 29, 2008
  3. Danielle
    Replies:
    1
    Views:
    2,783
    Munna
    Jun 8, 2008
  4. arby

    Checkbox in DataGrid Not Firing OnCheckedChanged events.

    arby, Jan 30, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    520
    Alvin Bruney [MVP]
    Jan 31, 2004
  5. Hitesh Jain

    oncheckedchanged event is not firing everytime on checkbox

    Hitesh Jain, Oct 14, 2004, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    1,461
    Robert Koritnik
    Oct 15, 2004
Loading...

Share This Page