OnCheckedChanged event as an Confirm(".....")

Discussion in 'ASP .Net Web Controls' started by Klaus E. Frederiksen, Jun 21, 2004.

  1. Hi

    I'm trying to find a way to show an Confirmation box when the
    OnCheckedChange event on a CheckBox fires. Somthing like this:
    chkShipped.Attributes.Add("OnCheckedChanged", "return confirm('Are You sure
    You want to select this ?');").

    The Confirmation box shows OK, but what I actually want is that a
    CheckChanged event handler gets called depended on the result of the
    Confirm. So I tried to add an eventhandler like the this:
    AddHandler chkShipped.CheckedChanged, AddressOf ShippedCheckChanged
    but I can't get it to work.

    Is there any way to show a Confirmation box from within an event handler ?

    Objecta
     
    Klaus E. Frederiksen, Jun 21, 2004
    #1
    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,998
    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,401
    radu_m
    Dec 29, 2008
  3. Mufasa
    Replies:
    2
    Views:
    7,193
    Mark Rae [MVP]
    Oct 27, 2007
  4. Danielle
    Replies:
    1
    Views:
    2,822
    Munna
    Jun 8, 2008
  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,624
    Robert Koritnik
    Oct 15, 2004
Loading...

Share This Page