title: how to assign value from database to label or textbox in asp.net c#
body: <p>i am using the following method to assign value to label or textbox:
  First i take dropdownlist then i use databound then i assign dropdownlist value to a label or textbox.</p>
  
  <pre><code>&lt;asp:DropDownList ID="DropDownList1" runat="server" 
          DataSourceID="A" DataTextField="Regisno" DataValueField="Regisno"&gt;
      &lt;/asp:DropDownList&gt;
  
   &lt;asp:AccessDataSource ID="A" runat="server" DataFile="~/App_Data/Database.mdb" 
              SelectCommand="SELECT [Regisno] FROM [tblsignupv] WHERE ([Email] = ?)"&gt;
              &lt;SelectParameters&gt;
                  &lt;asp:SessionParameter Name="Email" SessionField="User" Type="String" /&gt;
              &lt;/SelectParameters&gt;
          &lt;/asp:AccessDataSource&gt;
  </code></pre>
  
  <p>I want to know a method to assign value to label or textbox directly from database using c# code</p>
  
  <p>thnx in advance</p>