how do create a repeater

Answer Posted / nazrul.nazi

Repeater is a dataControl like GridView and Datalist but it
need more manipulation to create it.by the below code u
can design Repeater in tabular format and give data through
sqldatasource or coding. it all up to u.




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

<HeaderTemplate>
<table>
<tr><td>empid</td><td>empname</td></tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table>
<tr>
<td>
<asp:Label ID="Label1" runat="server"
Text='<%#Eval(empid) %>'></asp:Label>
</td>
<td><asp:Label ID="Label2" runat="server"
Text='<%#Eval(empid) %>'></asp:Label></td>
</tr>
</table>
</ItemTemplate>

</asp:Repeater>

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between master page and content page?

2324


Is .net easier than java?

682


How does .net remoting work?

834


What is the use of TPL DATAFLOW?

720


what is the method while we are using adapter and dataset ?

1557


Explain hard disk and what is its purpose? : .NET Architecture

675


Why the config file might not be writable

783


So what exactly is the configuration file for then?

713


Define a managed code? : Dot net architecture

680


5. Wcf- Session Managment

1731


What is an asssembly qualified name? Is it a filename? How is it different?

696


What is .net mobile automatic paging? : Microsoft dot net mobile

763


How to prevent my .NET DLL to be decompiled?

769


What's new in the .net 2.0 class library?

715


what is the difference between running an application with and without debugger?

1738