Professional Web Applications Themes

Submit form - ASP.NET Building Controls

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....

  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. #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

  3. #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

  4. #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">
    doent.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,

    Sid+

    mix-tape developer Guest

Similar Threads

  1. Submit PDF Form
    By Linda_Boothman@adobeforums.com in forum Adobe Acrobat Macintosh
    Replies: 4
    Last Post: October 21st, 06:00 PM
  2. Need Help With Submit Form
    By NewtoDesign in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: November 10th, 10:42 AM
  3. Form submit
    By S. Justin Gengo in forum ASP.NET General
    Replies: 3
    Last Post: December 24th, 04:21 PM
  4. Replies: 4
    Last Post: September 24th, 12:34 PM
  5. form without submit
    By doug777 in forum Macromedia Dreamweaver
    Replies: 0
    Last Post: July 28th, 02:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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