I'm taking a string number and need to write into SQL database.
Request.Form["amount"] ... is "22.85"
Convert.ToDecimal(Request.
Form["amou
nt"]) ... is "23"
I'm passing to SQL, using "SqlDbType.Decimal"
Within SQL db, field has data type of "decimal(12, 2)"
Why is this happening? What do I need to do?
Start Free Trial