Merge Datatable and Bind Repeter Control asp.net

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 1571
hi

I have post the code

Merge Datatable and Bind Repeter Control asp.net



Server Side


dt = dt1.Copy()
Repeat1.DataSource = dt
Repeat1.DataBind()


Client Side
===============

<asp:Repeater ID="Repeat1" runat="server">
<HeaderTemplate>
<table class="tblcolor">

</HeaderTemplate>
<ItemTemplate>
<tr>
<td><b><u>Student Information</u></b></td>
</tr>
<tr class="tblrowcolor">
<td>
Name :<%#DataBinder.Eval(Container, "DataItem.Name")%><br />Address :<%#DataBinder.Eval(Container, "DataItem.Address")%>
</td>
</tr>
</ItemTemplate>
<SeparatorTemplate>

</SeparatorTemplate>
<AlternatingItemTemplate>

</AlternatingItemTemplate>
<SeparatorTemplate>

</SeparatorTemplate>
<FooterTemplate>

</table>
</FooterTemplate>
</asp:Repeater>

Comments or Responses

Login to post response