title: How to display data from dataset in a html table from .cs
body: <p>I have a asp table and working dataset.How can I bind the dataset with the table.The code is here....   </p>
  
  <pre><code>&lt;asp:table id="tblcampaign" runat="server" width="100%" border="0" cellspacing="0" cellpadding="0"&gt;
    &lt;asp:TableHeaderRow ID="content_table_heading"&gt;
      &lt;asp:TableHeaderCell Width="39"&gt;&lt;img src="Images/table_heading_bg_lft.gif" alt="" width="39" height="41" /&gt;&lt;/asp:TableHeaderCell&gt;
      &lt;asp:TableCell width="91"&gt;Campaign ID&lt;/asp:TableCell&gt;
      &lt;asp:TableCell width="132"&gt;Campaign Name&lt;/asp:TableCell&gt;
      &lt;asp:TableCell width="134"&gt;Parent Campaign&lt;/asp:TableCell&gt;
      &lt;asp:TableCell width="121"&gt;Target Segment&lt;/asp:TableCell&gt;
      &lt;asp:TableCell width="95"&gt;Objective&lt;/asp:TableCell&gt;
      &lt;asp:TableCell width="130"&gt;Planned Start Date&lt;/asp:TableCell&gt;
      &lt;asp:TableCell width="134"&gt;Planned End Date&lt;/asp:TableCell&gt;
      &lt;asp:TableCell width="52"&gt;Status&lt;/asp:TableCell&gt;
      &lt;asp:TableCell width="39"&gt;&lt;img src="Images/table_heading_bg_rt.gif" alt="" width="39" height="41" /&gt;&lt;/asp:TableCell&gt;
  &lt;/asp:TableHeaderRow&gt;
       &lt;asp:TableRow&gt;
       &lt;asp:TableCell ColumnSpan="10"&gt;&lt;img src="Images/spacer.gif" alt="" width="1" height="8" /&gt;&lt;/asp:TableCell&gt;
    &lt;/asp:TableRow&gt;
    &lt;asp:TableRow CssClass="tr_style1"&gt;
     &lt;asp:TableCell&gt;&amp;nbsp;&lt;/asp:TableCell&gt;
      &lt;asp:TableCell CssClass="table_text_style2"&gt;01&lt;/asp:TableCell&gt;
      &lt;asp:TableCell &gt;&lt;a href="#"&gt;abc entertainment&lt;/a&gt;&lt;/asp:TableCell&gt;
      &lt;asp:TableCell &gt;None&lt;/asp:TableCell&gt;
      &lt;asp:TableCell &gt;Segment 1&lt;/asp:TableCell&gt;
      &lt;asp:TableCell &gt;Objective 1&lt;/asp:TableCell&gt;
      &lt;asp:TableCell CssClass="table_text_style2"&gt;01/01/2010&lt;/asp:TableCell&gt;
      &lt;asp:TableCell CssClass="table_text_style2"&gt;01/01/2010&lt;/asp:TableCell&gt;
      &lt;asp:TableCell &gt;Planned&lt;/asp:TableCell&gt;
      &lt;asp:TableCell&gt;&amp;nbsp;&lt;/asp:TableCell&gt;
      &lt;/asp:TableRow&gt;
  </code></pre>
  
  <p>.cs code is here..</p>
  
  <pre><code>MCMS.DAL.Dataset.MobileCampaign mob_cam = new MCMS.DAL.Dataset.MobileCampaign();
  MCMS.BL.MobileCampaignHandler obj = new MCMS.BL.MobileCampaignHandler();
  mob_cam = obj.GetCampaignDetails();
  </code></pre>