Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to add to color to the item that is found in search

Status
Not open for further replies.

helloaspnet

Programmer
May 31, 2007
37
US
Hello,
I added the code to the button click event .when i click the button the item i req gets selected in the listbbox.
I searched required item in listbox and am able to get it successfully but the thing is i want to distinguish b/w the item selected and others in listbox .i mean to say how to add color to the selected item.
thanks for the help in advance
byeeee

helloaspnet
 
ListItem attributes are not written out in ASP.NET:


So, you can either follow the workarounds suggested or use a javascript method to apply the style after the page has been rendered.


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top