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

Which tool you have done?

0 Answers  


You are creating a Web site for Your company. You receive product lists in the form of XML documents. You are creating a procedure to extract information from these XML documents according to criteria that your users will select. When a user makes a request, you want the results of these requests to be returned as quickly as possible. What should you do? A . Create an XmlDataDocument object and load it with the XML dat Use the DataSet property of the object to create a DataSet object. Use a SQL SELECT statement to extract the requested dat B . Create an XmlDataDocument object and load it with the XML data. Use the SelectNodes method of the object to extract the requested data. C . Create an XPathDocument object and load it with the XML data. Call the CreateNavigator method to create an XPathNavigator object. Call the Select method of the XPathNavigator object to run an XPath query that extracts the requested data. D . Create an XmlReader object. Use the Read method of the object to stream through the XML data and to apply an XPath expression to extract the requested data.

1 Answers   Syntax Softtech,


How many types of file extensions for razor views in ASP.Net MVC?

0 Answers  


What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

0 Answers   Prompt Softech,


what is reference type to value type.

3 Answers   AG Technologies,


what is profiles in asp.net

1 Answers  


What are the steps to follow to host a web application on a web server?

0 Answers   MCN Solutions,


How many types of validators are there in asp net?

0 Answers  


Explain http handlers? Where we can use the http handlers?

0 Answers   Accenture,


WHAT IS OBJECT POOLING

2 Answers   Fidelity,


What is the difference between Postback and Ispostback Property?

7 Answers   Atrocity Apps Technologies, DC Infotech, HCL, Maples, Visual Soft,


Difference between application and session ?

12 Answers   DataPoint, Satyam,


Categories