Results 1 to 3 of 3

Thread: refresh on buttonclick

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Columbia, SC USA
    Posts
    374

    Unhappy

    How do I refresh the form after a buttonclick? I have a simple form with a table, textbox, and button and the following form code:
    Code:
    <FORM METHOD="GET" ACTION="ADOAdd.asp">
    
    <P>
    Enter New Facility: <INPUT TYPE="Text" NAME="FacName">
    </P>
    
    <INPUT TYPE="Submit" VALUE="Update">
    
    <%
    CN.Execute("INSERT tblFacilities (Facility) VALUES ('" & Request.QueryString("FacName") & "')")
    %>
    
    </FORM>
    How would I refresh this form after adding the record?

  2. #2
    Guest
    Set the action property of the form to the current asp page so it reloads itself

  3. #3
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    If the Current Page is Start.asp Then
    The page ADOAdd.asp
    should have the line

    Response.Redirect "Start.asp"
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

Posting Permissions

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



Click Here to Expand Forum to Full Width