input value does not take currency format

pipodyer

New member
Joined
Nov 14, 2008
Messages
1
Programming Experience
1-3
1)
HTML:
<input NAME="PRICE" onChange="dosum()" value="<%=String.Format(”{0:$#,##0.00;($#,##0.00);Zero}”, m_curPrice)%>">
2)
HTML:
<%=String.Format(”{0:$#,##0.00;($#,##0.00);Zero}”, m_curPrice)%></td>

The previous code 1 and 2 generates the following:
1) 9800000.00 AND
2) $9,800,000.00

So as you can see 2 generates the right format but does not work inside the input value field (1)...

Any ideas?
Thanks
 
Top Bottom