What button do I need to open a new form

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default What button do I need to open a new form

    Hi All,

    I need a button on my form that opens a new window.
    I put in a submit button but it always returns to my first page.
    And then my first page is empty.
    What button do I need to go to another page (weapon_related)?

    This is what I use at the moment:

    'NewRecord1 Operation Method @3-0C905987
    Sub Operation()
    If NOT ( Visible AND FormSubmitted ) Then Exit Sub

    If FormSubmitted Then
    PressedButton = "Button1"
    If Not IsEmpty(CCGetParam("Button1", Empty)) Then
    PressedButton = "Button1"
    End If
    End If
    session("txtWID")=request("txtWID")
    Redirect = "Weapon_related.asp?" & CCGetQueryString("QueryString",
    Array("ccsForm", "Button1"))
    If Validate() Then
    If PressedButton = "Button1" Then
    If NOT Button1.OnClick() Then
    Redirect = "Weapon_related.asp?" &
    CCGetQueryString("QueryString", Array("ccsForm", "Button1"))
    End If
    End If
    Else
    session("txtWID")=request("txtWID")
    Redirect = "Weapon_related.asp?" &
    CCGetQueryString("QueryString", Array("ccsForm", "Button1"))
    End If
    End Sub

    'End NewRecord1 Operation Method

    Tnx in advance
    Marco
    Krechting Guest

  2. Similar Questions and Discussions

    1. Open window on button click
      Hi there, in a form, here's what I want to do : <input type=button onclick= (???) is it possible to open a pop-up window with a specified...
    2. button to open .exe
      I am having problems creating a button to open an .exe file. I've created a button with the following action script: on (release) {getURL("name...
    3. Button to open program
      I want a button in my flash to open up a external program eg Winamp. How can I do this?
    4. JavaScript Access to Button in form tags (webcontrol or html button)
      Hello, I have a button called LoadBtn, which exists in <form name="Form1" runat=server></form> tags. I then have javascript loaded outside of...
    5. Open Form from switchboard in Filter by Form mode
      I have a simple application in Access 2000 which currently uses no macro's or special code. What I want to do is devise a method whereby I can...
  3. #2

    Default Re: What button do I need to open a new form

    On 2 Jan 2004 17:21:58 -0800, [email]m.krechting@chello.nl[/email] (Krechting) wrote:
    >I need a button on my form that opens a new window.
    >I put in a submit button but it always returns to my first page.
    >And then my first page is empty.
    >What button do I need to go to another page (weapon_related)?
    This would be best in client-side code, using the OnClick event for
    your button. try a Javascript group for details.

    Jeff

    >This is what I use at the moment:
    >
    >'NewRecord1 Operation Method @3-0C905987
    > Sub Operation()
    > If NOT ( Visible AND FormSubmitted ) Then Exit Sub
    >
    > If FormSubmitted Then
    > PressedButton = "Button1"
    > If Not IsEmpty(CCGetParam("Button1", Empty)) Then
    > PressedButton = "Button1"
    > End If
    > End If
    > session("txtWID")=request("txtWID")
    > Redirect = "Weapon_related.asp?" & CCGetQueryString("QueryString",
    >Array("ccsForm", "Button1"))
    > If Validate() Then
    > If PressedButton = "Button1" Then
    > If NOT Button1.OnClick() Then
    > Redirect = "Weapon_related.asp?" &
    >CCGetQueryString("QueryString", Array("ccsForm", "Button1"))
    > End If
    > End If
    > Else
    > session("txtWID")=request("txtWID")
    > Redirect = "Weapon_related.asp?" &
    >CCGetQueryString("QueryString", Array("ccsForm", "Button1"))
    > End If
    > End Sub
    >
    >'End NewRecord1 Operation Method
    >
    >Tnx in advance
    >Marco
    Jeff Cochran 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