Thursday, May 8, 2008

Data display in Repeater control

<asp:Repeater ID="Rp"  runat="server">

<ItemTemplate>CompanyName: <%#Eval("Companyname") %><br />

Address : <%#Eval("Address") %><br />

City: <%#Eval("City") %><br />

PinCode: <%#Eval("Pincode") %>

</ItemTemplate>

<SeparatorTemplate><hr /></SeparatorTemplate>

</asp:Repeater>

in codbehind

rep.datasource=ds;

rep.Databind();
Share:

0 Comments:

Post a Comment