title: asp.net fileupload value to textbox
body: <p>I am using formview for inserting data into my database.I have to store name of an image file using file upload.Code is doing good with textbox.I just need guidance that how to connect that fileupload via form view.</p>
  
  <p>code:</p>
  
  <pre><code>&lt;asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1" 
  DefaultMode="Insert"&gt;
  
  &lt;InsertItemTemplate&gt;
    Name:
      &lt;asp:TextBox ID="shop_nameTextBox" runat="server" 
          Text='&lt;%# Bind("shop_name") %&gt;' /&gt;
      &lt;br /&gt;
      shop_image:
      &lt;asp:TextBox ID="shop_imageTextBox" runat="server" 
          Text='&lt;%# Bind("shop_image") %&gt;'  /&gt;
      &lt;asp:FileUpload ID="FileUpload1" runat="server"  /&gt;
      &lt;br /&gt;
  
      shop_desc:
      &lt;asp:TextBox ID="shop_descTextBox" runat="server" 
          Text='&lt;%# Bind("shop_desc") %&gt;' /&gt;
      &lt;br /&gt;
  
  
      shop_contact:
      &lt;asp:TextBox ID="shop_contactTextBox" runat="server" 
          Text='&lt;%# Bind("shop_contact") %&gt;' /&gt;
      &lt;br /&gt;
      &lt;asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
          CommandName="Insert" Text="Insert" /&gt;
  
      &amp;nbsp;&lt;asp:LinkButton ID="InsertCancelButton" runat="server" 
          CausesValidation="False" CommandName="Cancel" Text="Cancel" /&gt;
  &lt;/InsertItemTemplate&gt;
  
  &lt;/asp:FormView&gt;
  </code></pre>
  
  <p>I have tried to connect text box to file upload control but in vain. Googling has also not paid off.</p>