Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Require Field Format to 2 decimal places

Status
Not open for further replies.

fr2

Programmer
May 13, 2008
45
US
How can you require a field format to 2 decimal places ..

I know how to use a Required Field validator to require a field ...

Say the user enters .. a value 4 .... how do u change that to 4.00 say when they TAB away from the field ... I guess Java script? how do you check or convert the inputted value to 2 decimal places each time ...

Thanks
 
YOu can validate and format serverside, or use the compare validator and change the type to Double.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top