HTML text field not displaying decimal places of SQL money value

Posted by baldwingrand on Stack Overflow See other posts from Stack Overflow or by baldwingrand
Published on 2010-04-28T20:57:09Z Indexed on 2010/04/28 21:07 UTC
Read the original article Hit count: 230

Filed under:
|

I have a text field who's value is populated from a SQL recordset (below).

<input name="txtAmount" id="txtAmount" type="text" size="10" maxlength="10" value="<%=RS("Amount")%>">

In the SQL table, the Amount field (which is a money data type) is inserted correctly, as 5.00 However, in the web page, it displays only as 5 (i.e. the decimal places are missing). Anyone know why this might be and how I can get the decimal places to display in the field? Thanks!

© Stack Overflow or respective owner

Related posts about html

Related posts about sql