Which template must you provide, in order to display data
in a Repeater control?

Answers were Sorted based on User's Feedback



Which template must you provide, in order to display data in a Repeater control? ..

Answer / sivasaravanan

ItemTemplate

Is This Answer Correct ?    6 Yes 0 No

Which template must you provide, in order to display data in a Repeater control? ..

Answer / rakhi

Itemtemplate defines how items or data in the Repeater
control are displayed.

Is This Answer Correct ?    3 Yes 0 No

Which template must you provide, in order to display data in a Repeater control? ..

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

Post New Answer

More ASP.NET Interview Questions

What is query string? What are its advantages and limitations?

0 Answers  


How do you do Client-side validation in .Net?

0 Answers  


What is asynchronous call?

0 Answers  


What is marshalling ? Is it a part of asp.net ?

0 Answers   MCN Solutions,


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

0 Answers  






What is page request in asp.net?

0 Answers  


Why we go for mvc instead of asp.net? : Asp.Net MVC

0 Answers  


How to stop the inheritance?

2 Answers   TCS,


What does setting a control's EnableViewState property to false accomplish?

1 Answers  


what is client back feauture ?

1 Answers  


Which is better session or viewstate?

0 Answers  


how can i call output parameters from ado.net

3 Answers   TCS,


Categories