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 |
Is react a template engine?
What is skin in asp.net?
Explain about ASP.NET?
How can you implement encapsulation in asp.net?
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5
What are server-side comments in ASP.NET?
What are different ASP.NET Web Forms with the technology different from though ASP (1.0-3.0)?
What is razor? : asp.net mvc
How Session outproc in Sqlserver stored?
Which methods validate all the controls on a page?
Explain what is postback in asp. Net?
Is there any alternative to avoid name collisions other then Namespaces?