title: how to add label text from data table
body: <p>i my aspx page i have number of lables for that i need assign text from data table.
  label id like label1,lable2....</p>
  
  <p>datatable</p>
  
  <pre><code>val// column name and row values
  
  1. name  
  2. age   
  3. ph
  4. address etc..
  
   aspx page // design 
  
   &lt;table width=100% &gt;
          &lt;tr&gt;
              &lt;td style="width: 643px"&gt;
                  &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;asp:DropDownList ID="DropDownList1" runat="server"&gt;
                  &lt;/asp:DropDownList&gt;
              &lt;/td&gt;
          &lt;/tr&gt;&lt;/table&gt; 
  </code></pre>
  
  <p>i tried below code </p>
  
  <pre><code>string label_te = null;
  int i = 0;
  foreach (DataRow dr in obj_dt.Rows)
     {
         i++;
         label_te = dr.Field&lt;string&gt;("val");
  
         Label+i.Text = label_te.ToString();
     }
  </code></pre>
  
  <p>i know above code is error.any idea to get it</p>