OnClick Submit & Fresh

Discussion in 'ASP General' started by Matt, Feb 23, 2007.

  1. Matt

    Matt Guest

    I have an ASP page that once a user puts a check in form field
    checkbox I would like to have the the record updated and the page
    refreshed? Any suggestions on how to handle this? This is currently
    what I have for my checkbox:

    Response.Write "<td valign=middle align=left><input type=checkbox
    name=JobStatus " & SetCheckbox(cBool(objRecordset("JobStatus"))) & ">"

    Thanks
     
    Matt, Feb 23, 2007
    #1
    1. Advertising

  2. Matt

    Patrick Guest

    <input type="checkbox" name="JobStatus" onclick="form.submit();">

    This will cause the form to post when the box is clicked

    "Matt" <> wrote in message
    news:...
    >I have an ASP page that once a user puts a check in form field
    > checkbox I would like to have the the record updated and the page
    > refreshed? Any suggestions on how to handle this? This is currently
    > what I have for my checkbox:
    >
    > Response.Write "<td valign=middle align=left><input type=checkbox
    > name=JobStatus " & SetCheckbox(cBool(objRecordset("JobStatus"))) & ">"
    >
    > Thanks
    >
     
    Patrick, Feb 24, 2007
    #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. Steve C. Orr [MVP, MCSD]

    Fresh Starter

    Steve C. Orr [MVP, MCSD], Apr 2, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    418
    Abul Hasan
    Apr 3, 2004
  2. peshrad
    Replies:
    1
    Views:
    402
    Peter Blum
    Apr 9, 2004
  3. Replies:
    1
    Views:
    455
  4. rosco
    Replies:
    21
    Views:
    956
    Mabden
    Jun 2, 2004
  5. Fresh FAQ

    , Jul 3, 2006, in forum: VHDL
    Replies:
    2
    Views:
    489
Loading...

Share This Page