Adding Back Ground Color To DropDownList Items In The aspx.cs Page
-
I have a dropdownlist box which displays the status of the Cities whether it is active or inactive .I want to change the background color of the selected item ,say if it is active then the back color should be green and fore-color black.When the status is inactive the back color should be red and fore-color should be black .By the way to make it very specific i am not fill the dropdownlist from database i m filling it manually uisng items.add method in the aspx.cs page . Kindly tell me how can i add color to the items of my dropdownlist Patel Neelesh A
-
I have a dropdownlist box which displays the status of the Cities whether it is active or inactive .I want to change the background color of the selected item ,say if it is active then the back color should be green and fore-color black.When the status is inactive the back color should be red and fore-color should be black .By the way to make it very specific i am not fill the dropdownlist from database i m filling it manually uisng items.add method in the aspx.cs page . Kindly tell me how can i add color to the items of my dropdownlist Patel Neelesh A