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

  1. #1

    Default Submit form

    I am creating a control which will upload files. The problem I am having is
    the button event I have created does not seem to see the files getting
    posted to it. My first guess is that my event is not posting the form. I can
    add a submit button. How do I create an event that will respond to the
    submit button and enable me to use the httpFileCollection. Also when using
    the FileCollection is there any way to refer to the file by the id the input
    control. Regards, Chris.


    Chris Kennedy 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. Form submit
      Mira, If you move from one page to another then the objects which were on the first page wouldn't be accessible from the second. Is this what...
    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. ASP Form Doesn't Always Submit
      Hello everyone, I am pretty much newbie to ASP so please bear with me as I explain my problem. I currently have a main form which displays data...
  3. #2

    Default Re: Submit form

    Hi,

    you should set form ENCTYPE="multipart/form-data" attribute to uplaod
    files.

    Natty Gur[MVP]

    blog : [url]http://weblogs.asp.net/ngur[/url]
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur Guest

  4. #3

    Default submit form

    anyone know how to submit a form using an htm file in the action of the form
    method ?

    for example, <form method="post" action="test.htm">

    I get a 405 page not found - resource not allowed error with this.

    timrande Guest

  5. #4

    Default Re: submit form

    You can try something like that :

    <form method="post" action="test.htm" name="myForm>
    <input type="Hidden" name="myName" value="Said"> //this can be hidden or
    any other type it doesn't matter
    </form>
    <script language="JavaScript1.2">
    document.myForm.submit();
    </script>

    and in your template test.htm you can manipulate the variable myName as any
    other one and you don't have to define it.

    Best,

    S@id+

    mix-tape developer 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