how do create a repeater
Answers were Sorted based on User's Feedback
Answer / anand k
Like this way also c=u can create Repeater
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<table>
<tr><td>empid</td><td>empname</td></tr>
<ItemTemplate>
<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>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
what is tracing? Where it used?
2. I've a class Parent Class A and a Derived Class B. Here is a scenario. I've an instance of Class A as objA and an instance of Class B as objB. I can refer a child class variable as objB=objA, but cannot do objA=objB what is the reason?
how to minimize,maximize and restore my form programmatically?
1 Answers Interlac, Six Sigma,
Explain difference between machine config vs. Web config? : .NET Architecture
What are the new features of .net 2.0?
how do create a repeater
Why only boxed types can be unboxed?
what is an assembly ?
What is the difference between abstract class and Interface? Give an example how will u write an abstract class using .NET Framework
Can you explain scriptmanager control?
Can I create my own permission set?
how to add list of items in a web application and win application?