Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > currency format

Reply
Thread Tools

currency format

 
 
susie
Guest
Posts: n/a
 
      11-22-2003
Question 1:
I have a text box for user to enter a number, for example,
user entered 1000. Once the user press enter key, the
text in the text box should change to $1,000.

How could I do this?

Question 2:
Must I turn the AutoPostBack=true for this text box in
order to have the effect (that is to have $1,000 shown in
the textbox?

Thanks a lot
 
Reply With Quote
 
 
 
 
Alan Corbett \(.NET MVP\)
Guest
Posts: n/a
 
      11-26-2003
The following page has a good example of how to format money in the
client-side, which would negate the requirement for an autopostback.

http://www.js-examples.com/example/?ex=934


"susie" <> wrote in message
news:00d101c3b131$25bf1720$...
> Question 1:
> I have a text box for user to enter a number, for example,
> user entered 1000. Once the user press enter key, the
> text in the text box should change to $1,000.
>
> How could I do this?
>
> Question 2:
> Must I turn the AutoPostBack=true for this text box in
> order to have the effect (that is to have $1,000 shown in
> the textbox?
>
> Thanks a lot



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I Format Currency w/out decimals? JeffP@Laptop ASP .Net 3 12-15-2005 02:06 AM
Format Currency for label VB Programmer ASP .Net 2 09-14-2005 02:35 PM
Format DataItem 'inline' as Currency/String? D. Shane Fowlkes ASP .Net 1 06-09-2005 04:05 PM
convert output to currency format TJS ASP .Net 0 05-18-2005 09:04 PM
CompareValidator on currency figure in French format Biao Tang ASP .Net 0 04-28-2005 09:15 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57