ASP.NET Data output format

  • Thread starter Thread starter Morys Kenworthy
  • Start date Start date
M

Morys Kenworthy

How do I format my textboxes to show something like:
$500,000.00
08/16/2004
548-55-4486

Is there a way to do this in ASP.NET?

I have some textboxes on a web page (not in a grid) and I would like to
apply some formatting to them. Thank you in advance.
 
I see there are many samples for windows forms on how to convert data types
to another data type but I can not find a sample code in there on how to
format the values in a textbox on web pages.

Could you be so kind to send me some sample code about how to convert the
following text boxes:
VALUE IN TEXTBOX1 = 500000
VALUE IN TEXTBOX2 = 081604
VALUE IN TEXTBOX3 = 548554486

I would like the user to see the following when they are typing the values
or after they leave the textbox:
VALUE IN TEXTBOX1 = $500,000.00
VALUE IN TEXTBOX2 = 08/16/2004
VALUE IN TEXTBOX3 = 548-55-4486

Thank you for your time.
 
I have been searching in the Formatting Overview link you sent me but I
haven't been able to find something to format a DATE textbox or Social
Security textbox for the ASP.NET environment. There are a few things for
windows forms though.

Could you send me some sample code?

Thanks
 
Back
Top