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();

No comments :

Post a Comment

AJAX, asp, Asp.net, asp.net and sql server security, Asp.net IntemIndex, C#, Css, DataBinder.Eval, DataKeyNames, Datalist, Datapager, DataSet, DataTable, DropDownList, FindControl, gridview, JavaScript, jquery, Listview, Paging, Regex, RegularExpression, Repeater, Server side validation, Sql Server, timer, timercallback, Validation, XML, xmlnode, XPath