string test = Convert.ToString(Total.Text.Replace("$", "").Replace(".", ""));
string s = "$123,456.78"; decimal value; bool flag = decimal.TryParse(s,NumberStyles.Currency,CultureInfo.CurrentCulture.NumberFormat,out value); if (flag) { Console.WriteLine("Entered Amount is :" + value); }
string test = Convert.ToString((Total.Text.Replace("$", "").Split("."))[0].ToString());
string test = Convert.ToString(Total.Text.Replace("$", "").Replace(" ", ""));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)