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

data types used in validation control

1751


What is the procedure on hardware that converts the ascii value to binary? : .NET Architecture

538


How do I stop a thread?

543


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture

534


Explain difference between machine config vs. Web config? : .NET Architecture

545






readonly syntax ?

1416


What is a managed code is dim fs as filestreamobject is a managed code? : .NET Architecture

668


What is application frame host?

596


What is difference between .net and visual studio?

524


What are the new features of .net 2.0?

533


Explain some of the disadvantages due to microsoft.net?

543


What is the use of CLR in .NET?

601


What is one way operation?

565


what is the difference between master page and content page?

2117


What is a service class?

541