I am using a asp.net drop down list and it’s pulling in a collection of Category Names. The category names have html tags in them like firstname'<‘br /’>’lastname. I want to get rid of those tags only in the Drop Down List, I can’t change the name. Right now, the break tags show in the drop down.
Share
You can use String.Replace method in Databoud event
or regular expressions for remove all HTML tags: