Ask a Question related to ASP, Design and Development.

  1. #1

    Default Re: checkbox update

    I don't really follow, personally, but it sounds like you want to do
    something like:


    <input type="checkbox" disabled="true">

    Either that, or use radio buttons.

    Ray at work

    "alexz" <alexz33@hotmail.com> wrote in message
    news:43d72b53.0307090701.524624c8@posting.google.c om...
    > I update the attended field in tblca table with 'active'
    > if the checkbox is selected (the previously selected checkbox are already
    checked).
    >
    > --------------------------------------------------------
    > if rs("attended") = "Active" then
    > toadd = Response.Write ("<input type='checkbox' CHECKED>")
    > Else
    > Response.Write ("<input type=checkbox name=toadd
    > value="""& rs("id")&""">")
    > End if
    > SQL = "UPDATE Tblca SET attended='Active' WHERE ID
    IN("&request.form("toadd")&")"
    > --------------------------------------------------------
    > I wanted to set the checkboxes that are not checked to
    > 'inactive' in the attended field.
    > Thanks.

    Ray at Guest

  2. Similar Questions and Discussions

    1. Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
      I am trying to update the database field when the checkbox is clicked. I am trying to modified the following solution but.. got stuck on the...
    2. how to update from a checkboxlist or checkbox
      Can someone please help me. I thought this would be relatively painless but Im having problems. I've created a small applicaion using asp.net...
    3. Datagrid checkbox value update issue
      Hi, All, I am trying to bulid a web application for user's to approve certain information. On the web page, it shows a datagrid containing the...
    4. update Access with checkbox
      Hi, strangly enough i can make all sorts of update pages with MM DW but not when a checkbox is involved. The checkbox must update an Access Dbase...
    5. What am I doing wrong with checkbox update?
      I have a form with multiple: <input type="checkbox" class="checkbox" name="green" value="true"<% if rs("hardstyle") = true then %> checked<% else...
  3. #2

    Default Re: checkbox update

    you can't have a CLICK event do ANYTHING in ASP. You will have to have the
    event post the form back to the server

    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------

    "Alex zurab" <anonymous@devdex.com> wrote in message
    news:u7UU3IkRDHA.3768@tk2msftngp13.phx.gbl...
    >
    > Basically when a checkbox is clicked
    >
    > Response.Write ("<input type=checkbox name=toadd
    > value="""& rs("id")&""">")
    >
    > it set a field with 'active' value
    > SQL = "UPDATE Tblca SET attended='Active' WHERE ID
    > in("&request.form("toadd")&")"
    >
    > what i want is when the checkbox is unchecked
    > the same field be update whit the value 'Inactive'
    > Thanks.
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Curt_C [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139