0
我有一個ASP表和工作dataset.How我可以綁定數據集與table.The代碼顯示來自數據集的數據是這裏....如何在HTML表格從的.cs
<asp:table id="tblcampaign" runat="server" width="100%" border="0" cellspacing="0" cellpadding="0">
<asp:TableHeaderRow ID="content_table_heading">
<asp:TableHeaderCell Width="39"><img src="Images/table_heading_bg_lft.gif" alt="" width="39" height="41" /></asp:TableHeaderCell>
<asp:TableCell width="91">Campaign ID</asp:TableCell>
<asp:TableCell width="132">Campaign Name</asp:TableCell>
<asp:TableCell width="134">Parent Campaign</asp:TableCell>
<asp:TableCell width="121">Target Segment</asp:TableCell>
<asp:TableCell width="95">Objective</asp:TableCell>
<asp:TableCell width="130">Planned Start Date</asp:TableCell>
<asp:TableCell width="134">Planned End Date</asp:TableCell>
<asp:TableCell width="52">Status</asp:TableCell>
<asp:TableCell width="39"><img src="Images/table_heading_bg_rt.gif" alt="" width="39" height="41" /></asp:TableCell>
</asp:TableHeaderRow>
<asp:TableRow>
<asp:TableCell ColumnSpan="10"><img src="Images/spacer.gif" alt="" width="1" height="8" /></asp:TableCell>
</asp:TableRow>
<asp:TableRow CssClass="tr_style1">
<asp:TableCell> </asp:TableCell>
<asp:TableCell CssClass="table_text_style2">01</asp:TableCell>
<asp:TableCell ><a href="#">abc entertainment</a></asp:TableCell>
<asp:TableCell >None</asp:TableCell>
<asp:TableCell >Segment 1</asp:TableCell>
<asp:TableCell >Objective 1</asp:TableCell>
<asp:TableCell CssClass="table_text_style2">01/01/2010</asp:TableCell>
<asp:TableCell CssClass="table_text_style2">01/01/2010</asp:TableCell>
<asp:TableCell >Planned</asp:TableCell>
<asp:TableCell> </asp:TableCell>
</asp:TableRow>
.cs代碼在這裏..
MCMS.DAL.Dataset.MobileCampaign mob_cam = new MCMS.DAL.Dataset.MobileCampaign();
MCMS.BL.MobileCampaignHandler obj = new MCMS.BL.MobileCampaignHandler();
mob_cam = obj.GetCampaignDetails();