I have a string value coming from the label on the .aspx page as follows.
string text = Price.Text; // Price.Text = "$31.07" Single value = Convert.ToSingle(text); //throws FormatException
I can replace the $ sign with empty text and then convert to single, but I was wondering if there is a better way to de-format text with the $$ sign to Single.
hpatel298
source share