title: C# Binding Data to Text Box
body: <p>I am trying to bind a database row to a text box in C# so it is the default value (but the text box can still be edited).</p>
  
  <p>The current issue i am having is that the text box will not let me attach a data source with the error (System.Web.UI.WebControls.TextBox does not contain a definition for 'DataSource'....)</p>
  
  <p>I am able to succesfully bind the datasource to a drop down list, but using the same code for a text box does not work.</p>
  
  <pre><code>        txtBox1.DataSource = "DataSource";
          txtBox1.DataBind();
  </code></pre>