Hi,
I have a datafield in my database that has the sql datatype decimal (with a precision of 10 and scale of 2).
When I try to add a something to this field through my vb.net webapp by using
Dim strValue as string
strValue = "4999.99"
Dim decValue as decimal = CDec(strValue)
And I would store decDecimal in the database, it would save it as 499999.
However if I enter the value of strValue using enterprise manager, it did save it correctly.
How am I suppose to save this?
I have a datafield in my database that has the sql datatype decimal (with a precision of 10 and scale of 2).
When I try to add a something to this field through my vb.net webapp by using
Dim strValue as string
strValue = "4999.99"
Dim decValue as decimal = CDec(strValue)
And I would store decDecimal in the database, it would save it as 499999.
However if I enter the value of strValue using enterprise manager, it did save it correctly.
How am I suppose to save this?