How to submit an invalid form

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

  1. #1

    Default How to submit an invalid form

    Hi,

    I have an edit page that contains both as edit and delete
    button. When the user clicks delete I do not want the
    page to be validated, so even if the data is invalid the
    record can still be deleted.

    Is there a way to disable the validation when the delete
    button is clicked, without setting the
    clientTarget="downlevel"

    Thanks in advance

    Jake
    Jake Guest

  2. Similar Questions and Discussions

    1. Form does not submit in Mac
      Hi all, I am using the submitForm() on my submit button. I have set the URL to "/Save.aspx" which will get the submitted information and doing...
    2. Need Help With Submit Form
      I have DW 3 and designing my own site. I would like my customer to be able to fill out a form. I know how to create a form, I don't know how to get...
    3. After submit of a form
      I want to allow software to be donwloaded but only after a form is filled out , verified and submitted. No matter where I place the code it does not...
    4. Form Field/ Form Submit Problems (probably an easy answer...)
      Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works...
    5. form without submit
      I have a form with a single menu element. How can I send the user's selection to the CF action page onChange without using Submit?
  3. #2

    Default Re: How to submit an invalid form

    Simply set the CausesValidation property of your Delete Button to false.

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


    "Jake" <reachJake@hotmail.com> wrote in message
    news:186501c35fab$c033c350$3501280a@phx.gbl...
    > Hi,
    >
    > I have an edit page that contains both as edit and delete
    > button. When the user clicks delete I do not want the
    > page to be validated, so even if the data is invalid the
    > record can still be deleted.
    >
    > Is there a way to disable the validation when the delete
    > button is clicked, without setting the
    > clientTarget="downlevel"
    >
    > Thanks in advance
    >
    > Jake

    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