Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Cancel submit?

    Is there a way to cancel the submit process from the client using vbscript?


    Joe C. Guest

  2. Similar Questions and Discussions

    1. how to cancel a webservice?
      HI, In my client application (a CSharp Windows App), I invoke a webservice function. Because these client applications are sometimes running...
    2. Submit and Cancel
      Hi guys, And another very simple one. I actually stumbled for the 1st time on a situation where I'd like to have 2 buttons on a form, one to...
    3. Cancel a Form
      How can I close a form avoiding the data join in record source table?
    4. Cancel As Integer
      If an event procedure include the argument Cancel As Integer, you can cancel the event with: Cancel = True For example, if you want to stop the...
    5. Cancel this post
      Never mind, I just realized that I can process the input in the form rather than the textbox. God Bless, Mark A. Sam
  3. #2

    Default Re: Cancel submit?

    Sorry for my ignorance. Currently all I have is a Button_OnClick sub. I am
    prompting the users if the want to proceed. If yes then the form is
    submitted otherwise if no.


    "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    news:%23F3mDxwSDHA.2724@TK2MSFTNGP10.phx.gbl...
    > Return false from your vbscript function
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD
    > [url]http://Steve.Orr.net[/url]
    >
    >
    > "Joe C." <nospam@nospam.com> wrote in message
    > news:OxHH8gwSDHA.2316@tk2msftngp13.phx.gbl...
    > > Is there a way to cancel the submit process from the client using
    > vbscript?
    > >
    > >
    >
    >

    Joe C. Guest

  4. #3

    Default Re: Cancel submit?

    Here's some server side code that outputs javascript that will do the trick:
    myDeleteButton.Attributes.Add("onclick", _
    "return confirm('Are you sure you want to delete?');")

    Or if you insist on VBScript you could use the Msgbox Function.
    If the return value is vbOK (1) then document.Form1.submit()

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Joe C." <nospam@nospam.com> wrote in message
    news:OBf$M8wSDHA.1576@TK2MSFTNGP12.phx.gbl...
    > Sorry for my ignorance. Currently all I have is a Button_OnClick sub. I am
    > prompting the users if the want to proceed. If yes then the form is
    > submitted otherwise if no.
    >
    >
    > "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    > news:%23F3mDxwSDHA.2724@TK2MSFTNGP10.phx.gbl...
    > > Return false from your vbscript function
    > >
    > > --
    > > I hope this helps,
    > > Steve C. Orr, MCSD
    > > [url]http://Steve.Orr.net[/url]
    > >
    > >
    > > "Joe C." <nospam@nospam.com> wrote in message
    > > news:OxHH8gwSDHA.2316@tk2msftngp13.phx.gbl...
    > > > Is there a way to cancel the submit process from the client using
    > > vbscript?
    > > >
    > > >
    > >
    > >
    >
    >

    Steve C. Orr, MCSD 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