The Fortunate.StringUtilities object contains methods to extract portions of a string, strip all html from a string, and pad a string with spaces which will even show up in a drop down list.
If you've ever tried to put spaces into a drop down list in front of a list item you've probably noticed that you can't. The secret is to properly encode the space. Check the two drop downs below to see the difference.
Dim StringUtilitiesObject As New Fortunate.StringUtilities
PaddedDropDownList.Items.Add(New ListItem(StringUtilitiesObject.Pad(Server, PadLength) & RandomNumber.ToString()))
StringUtilitiesObject.ExtractString(Label.Text, "href=""", """")
StringUtilitiesObject.HtmlStripper(Label.Text)
|