title: VB.NET Custom SqlFactory, FileUpload Control issue
body: <p>I've built the <code>SqlFactory</code> class to control my <code>StoredProcedures</code>, and I use it for all transactions between application and SQLServer. The part that I implemented last is file upload. But it won't do things as it should :( I've searched around the web not much could be found.</p>
  
  <p>So basically I want to save my <code>Report</code> with <code>name</code>, <code>description</code>, and <code>image</code>.
  <code>Name</code> and <code>description</code> are working perfectly, but for some reason it will not upload the file, it does not even reach the code for uploading it, which is:</p>
  
  <pre><code>If fuImage.PostedFile Is Nothing OrElse String.IsNullOrEmpty(fuImage.PostedFile.FileName) OrElse fuImage.PostedFile.InputStream Is Nothing Then
      'nothing to upload
  Else
      Dim imagebytes(fuImage.PostedFile.InputStream.Length) As Byte
      fuImage.PostedFile.InputStream.Read(imagebytes, 0, imagebytes.Length)
      rep.FuImage = imagebytes
  End If
  rep.Name = txtName.Text
  rep.Description = txtReportContent.Text
  repFac.Save(rep)
  </code></pre>
  
  <p>The lines <code>rep.FuImage = imagebytes</code> and those below <code>if</code> statement are my factory lines it should be working but it's like <code>fuImage</code> <code>FileUpload</code> control never recognizes a file that's supposed to be selected.</p>
  
  <p>This is my view part:</p>
  
  <pre><code>&lt;asp:FileUpload ID="fuImage" runat="server" CssClass="fontChange" /&gt;
  &lt;asp:RegularExpressionValidator ID="rExpImage" runat="server" ControlToValidate="fuImage"
      ErrorMessage="Only .gif, .jpg, .png, .tiff and .jpeg"  ValidationExpression="(.*\.([Gg][Ii][Ff])|.*\.([Jj][Pp][Gg])|.*\.([Bb][Mm][Pp])|.*\.([pP][nN][gG])|.*\.([tT][iI][iI][fF])$)"
      ValidationGroup="ReportValidationSummary" CssClass="failureNotification"&gt;*&lt;/asp:RegularExpressionValidator&gt;
  </code></pre>
  
  <p>Note: I am aware that FileUpload does not work in <code>asp:UpdatePanel</code>, hence I'm using regular <code>asp:Panel</code>, I beginning to doubt if there are issues with all <code>Panel</code> controls... Also, I've looked around problems that mention a lot of things, and I'm quite lost.</p>
  
  <p>Please help, and thank you.</p>
  
  <p><strong>EDIT:</strong>
  I've also tried working around <code>forms</code>, nothing came out of it. My server side <code>form</code> is placed on my <code>Master</code> page, and that's the only one i use. I've tried placing form on each page, instead. Nothing changed. (Read this in someones question, thought I'd try too.)</p>