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 |
Explain the main function of razor in asp.net? : asp.net mvc
Can action method static?
What is Bundling and Minification in MVC?
What are the main differences between asp and asp.net?
How do you declare static variable? What is its lifetime?
What is fulltrust?
Should user input data validation occur server-side or client-side? Why?
3 Answers NIC, Siebel Systems,
what is shared assembly?
What can we do with asp.net?
What is a WebService and what is the underlying protocol used in it? Namespace?
Can one dll file contains the compiled code of more than one .net language?
What is variable and constant in .net programming language?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)