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