S
SamIAm
I am displaying money values in a textbox like this:
txtCountryPack.Text = String.Format("{0:c}", dr[0]["Pack"]);
I then need to updated my Database:
decimal packPrice = Convert.ToDecimal(txtCountryPack.Text.Trim());
The problem is that the value is in a formatted format i.e. $300.00
How do I remove the formatting with have to do a SubString?
Cheers.
S
txtCountryPack.Text = String.Format("{0:c}", dr[0]["Pack"]);
I then need to updated my Database:
decimal packPrice = Convert.ToDecimal(txtCountryPack.Text.Trim());
The problem is that the value is in a formatted format i.e. $300.00
How do I remove the formatting with have to do a SubString?
Cheers.
S