I'm trying to get a value from a typed textbox with a dot, and save it with dot in decimal, if you type 10.80, and then to store 10.8 in my variable.
I tried the following:
decimal valorTotal = Convert.ToDecimal(hfValor.Value.Replace(".", "").Replace(",", "."), CultureInfo.InvariantCulture);
However, he is saving everything together without the dot.