title: Why doesnt doesnt HTML input of type file not work with Ajax update panel
body: <p>I have a input of type file and when i try to do a Request.files when the input is wrapped in an update panel...it always returns an empty httpfilecollection. Why???</p>
  
  <p>This is the codebehind: (At HttpContext.Current.Request.Files...its always 0 for the count.)</p>
  
  <pre><code> Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
      Dim uploads As HttpFileCollection
      uploads = HttpContext.Current.Request.Files
  
      For i As Integer = 0 To (uploads.Count - 1)
  
          If (uploads(i).ContentLength &gt; 0) Then
              Dim c As String = System.IO.Path.GetFileName(uploads(i).FileName)
  
              Try
                  uploads(i).SaveAs("C:\UploadedUserFiles\" + c)
                  Span1.InnerHtml = "File Uploaded Sucessfully."
              Catch Exp As Exception
                  Span1.InnerHtml = "Some Error occured."
              End Try
  
          End If
  
      Next i
  
  End Sub
  </code></pre>
  
  <p>This example comes from the ASP.Net website...but my application is very similar.</p>