Click here to Skip to main content
14,923,038 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,
I have a linked button inside a Listview repeated 3 times (number of rows from datatable). I want to change the background color of the [not] selected button.
in code behind I could get the button Id and change the background of it inside the ItemCommand event:
C#
mybutton.Style.Add(HtmlTextWriterStyle.BackgroundColor, "grey");


But I want to make the other buttons grey not the selected one
Any ideas?

Thanks in advance
Samira
Posted
Comments
[no name] 15-Jul-15 15:47pm
   
If you want to set background of visited links only from your page, you can try with simpe CSS trick as in below link.

http://www.w3schools.com/cssref/sel_visited.asp

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900