Which template must you provide, in order to display data
in a Repeater control?
Answers were Sorted based on User's Feedback
Answer / rakhi
Itemtemplate defines how items or data in the Repeater
control are displayed.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / anilkumar
Example for better idea
<asp:Repeater id="Repeater1" runat="server">
<HeaderTemplate>
<table cellpadding="5" cellspacing="2" >
<tr bgcolor=Gray>
<td><b>CustomerName</b></td>
<td><b>Country</b></td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td><%#
DataBinder.Eval(Container.DataItem,"CustomerName") %></td>
<td><%# DataBinder.Eval(Container.DataItem,"Country")
%></td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr bgcolor="#ccccff">
<td><%#
DataBinder.Eval(Container.DataItem,"CustomerName") %></td>
<td><%# DataBinder.Eval(Container.DataItem,"Country")
%></td>
</tr>
</AlternatingItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
Is This Answer Correct ? | 0 Yes | 1 No |
What is asp net_sessionid?
Can you explain the basic use of dataview?
What is another word for redirect?
Differentiate between file-based dependency and key-based dependency.
What is the use of the tag in the web.config file?
How to check null values in dataset ?
What is variable and constant in .net programming language?
To match the two different controls which control would we use ?
Name some asp objects?
What is the difference between managed and unmanaged code? *******
What is a multilingual website?
if you disable view state of a textbox will it maintain data during postbacks.if yes reason
9 Answers FactorH, Jindal, Oxi Infotech,