htmlinputfile.postedfile is nothing
I have the following form page (aspx)

    <form id="form1" runat="server" enctype="multipart/form-data" method="post">
    
    <forms:FormDisplay ID="UserProfileForm1" runat="server" />
    
    </form>

The UserProfileForm1 control is a form builder that creates a form based on the profile design. When the form is posted, I am looking through the controls in the form and handling each one as needed. We there is a file upload control it shows up as a htmlinputfile control but the postedfile property is always nothing.

When I look at the Request.Files collection the first file (Request.Files(0)) is the file I selected to upload. Why is this not being mapped back to the control under .postedfile?

I have a control builder which uses the following code to create the control

    Dim file As New HtmlInputFile
    file.ID = "fil" & md.DataID & md.Name
    Return file
htmlinputfile.postedfile is nothing
===

I have the following form page (aspx)

    <form id="form1" runat="server" enctype="multipart/form-data" method="post">
    
    <forms:FormDisplay ID="UserProfileForm1" runat="server" />
    
    </form>

The UserProfileForm1 control is a form builder that creates a form based on the profile design. When the form is posted, I am looking through the controls in the form and handling each one as needed. We there is a file upload control it shows up as a htmlinputfile control but the postedfile property is always nothing.

When I look at the Request.Files collection the first file (Request.Files(0)) is the file I selected to upload. Why is this not being mapped back to the control under .postedfile?

I have a control builder which uses the following code to create the control

    Dim file As New HtmlInputFile
    file.ID = "fil" & md.DataID & md.Name
    Return file