Results 1 to 2 of 2

Thread: HtmlInputFile control question

  1. #1

    Thread Starter
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310

    HtmlInputFile control question

    Hi all,

    I've got a problem with the HtmlInputFile control. My form is dynamically created, adding different kind of controls to a placeholder. When running this code:

    VB Code:
    1. Dim loop1 As Integer
    2. Dim arr1() As String
    3. Dim coll As NameValueCollection
    4.  
    5. ' Load Form variables into NameValueCollection variable.
    6. coll=Request.Form
    7.  
    8. ' Get names of all forms into a string array.
    9. arr1 = coll.AllKeys
    10. For loop1 = 0 To arr1.GetUpperBound(0)
    11.    Response.Write("Form: " & arr1(loop1) & "<br>")
    12. Next loop1

    the HtmlInputFile control is not shown, while I've given it an ID (HtmlInputFile1.ID = "test", for example). Does anyone know why this control doesn't exist in the control collection?

    Also in the resource viewer, in the arr1 array the fileuploadcontrol is not found... Any ideas?

    Thanx in advance,

    Marco

  2. #2

    Thread Starter
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310

    Re: HtmlInputFile control question

    Nobody ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width