onChange how to

Discussion in 'ASP .Net' started by =?Utf-8?B?TWFydGluYUw=?=, Sep 12, 2005.

  1. Hi, I need to change this code so that when this checkbox is selected;

    <input type="checkbox" name=becomeMember value=1 >
    Yes, I would like to become a Member of Orange Wine Club for
    $22 per annum.

    This field further down the page is changed to 22. If it is unselected again
    it should change back to 0.

    <tr>
    <td align=right><b>Member Fee:</b></td>
    <td>$<input type="text" maxlength=4 name="memberfee" size=10><input
    type=hidden name="memberfee_final" value=""></td>
    =?Utf-8?B?TWFydGluYUw=?=, Sep 12, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?TWFydGluYUw=?=

    Brock Allen Guest

    So handle the checkbox's OnChecked event and set its AutopostBack=true. Then
    do your logic server side.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen

    > Hi, I need to change this code so that when this checkbox is selected;
    >
    > <input type="checkbox" name=becomeMember value=1 >
    > Yes, I would like to become a Member of Orange Wine Club
    > for
    > $22 per annum.
    > This field further down the page is changed to 22. If it is unselected
    > again it should change back to 0.
    >
    > <tr>
    > <td align=right><b>Member Fee:</b></td>
    > <td>$<input type="text" maxlength=4 name="memberfee"
    > size=10><input
    > type=hidden name="memberfee_final" value=""></td>
    Brock Allen, Sep 12, 2005
    #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. Zeebra3
    Replies:
    5
    Views:
    5,099
    pelegk1
    Jul 15, 2007
  2. Brendan Vogt

    POSTING A FORM USING onchange

    Brendan Vogt, Aug 28, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    470
    Leon Jollans
    Aug 28, 2003
  3. Kathy Burke
    Replies:
    1
    Views:
    1,116
    Severin
    Nov 10, 2003
  4. MDBloemker
    Replies:
    2
    Views:
    2,836
  5. =?Utf-8?B?TW9ua2V5Qm95?=
    Replies:
    2
    Views:
    433
    =?Utf-8?B?TW9ua2V5Qm95?=
    Jun 6, 2004
Loading...

Share This Page