J
Jon S via DotNetMonster.com
Hi all
In short, I have a dataset that contains 10 records and the relevant headings.
All I want to do is bind this dataset to a asp.net repeater control. All the
examples I've seen create table cell headings and then map to them headings
like:
<%#DataBinder.Eval(Container.DataItem, "CompanyName")%>,
<%#DataBinder.Eval(Container.DataItem, "ContactName")%></font>
I dont need to , and therefore haven't, created any headings as the dataset
has them already. I just want to do something like this:
CODE BEHIND CODE:
this.repwscDayTop10.DataSource = dsDayTop10;
this.repwscDayTop10.DataBind();
WEB FORM CODE:
<asp:Repeater id="repwscDayTop10" runat="server">
<%#Container.DataItem%>
</asp:Repeater>
How do I do this? Is there any good links? Thanks in advance.
In short, I have a dataset that contains 10 records and the relevant headings.
All I want to do is bind this dataset to a asp.net repeater control. All the
examples I've seen create table cell headings and then map to them headings
like:
<%#DataBinder.Eval(Container.DataItem, "CompanyName")%>,
<%#DataBinder.Eval(Container.DataItem, "ContactName")%></font>
I dont need to , and therefore haven't, created any headings as the dataset
has them already. I just want to do something like this:
CODE BEHIND CODE:
this.repwscDayTop10.DataSource = dsDayTop10;
this.repwscDayTop10.DataBind();
WEB FORM CODE:
<asp:Repeater id="repwscDayTop10" runat="server">
<%#Container.DataItem%>
</asp:Repeater>
How do I do this? Is there any good links? Thanks in advance.