Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How can you provide an alternating color scheme in a
Repeater control?

Answers were Sorted based on User's Feedback



How can you provide an alternating color scheme in a Repeater control?..

Answer / sunayana

Use the AlternatingItemTemplate

Is This Answer Correct ?    11 Yes 2 No

How can you provide an alternating color scheme in a Repeater control?..

Answer / manas

AlternatingItemTemplate

Is This Answer Correct ?    7 Yes 1 No

How can you provide an alternating color scheme in a Repeater control?..

Answer / rey vegafria

in UI...

<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<tr bgcolor="<%#getColor()%>">
<td align="center"><%#Container.DataItem("name")%></td>
</tr>
</ItemTemplate>
</asp:Repeater>


in Source Code...

Partial Class _Default
Dim strColor As String = "#ffffff"
...

Function getColor()
If strColor = "#ffffff" Then
strColor = "#E0F4F8"
getColor = "#ffffff"
Else
strColor = "#ffffff"
getColor = "#E0F4F8"
End If
End Function

End Class

Is This Answer Correct ?    2 Yes 2 No

How can you provide an alternating color scheme in a Repeater control?..

Answer / sony

use colortemplete

Is This Answer Correct ?    0 Yes 0 No

How can you provide an alternating color scheme in a Repeater control?..

Answer / aadesh kumar

AlternatingItemTemplate Like the ItemTemplate element, but rendered for every other row (alternating items) in the Repeater control. You can specify a different appearance for the AlternatingItemTemplate element by setting its style properties.

Is This Answer Correct ?    0 Yes 0 No

How can you provide an alternating color scheme in a Repeater control?..

Answer / surendra singh

Using the AlternatintItemTemplate

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Define cookie.

0 Answers  


What are server objects?

0 Answers  


Is it necessary to create a Windows application or Web application to test a Web service ? Is it must to consume this service?

2 Answers   Siebel,


What is the base class from which web forms are inherited?

0 Answers  


Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?

0 Answers  


what is a virtual class?

1 Answers   Patni,


What is the default Orientation property in a Menu control?

0 Answers   Sans Pareil IT Services,


How do you add a javascript function for a link button in a datagrid?

2 Answers   Microsoft,


Describe SOA and the tenets of it?

0 Answers   Siebel,


Write code to send e-mail from an asp.net application?

0 Answers  


What are the advantages and disadvantages of viewstate ?

1 Answers  


What is the difference between the response.write() and response.output.write() methods?

0 Answers  


Categories