currency format

Discussion in 'ASP .Net Web Controls' started by susie, Nov 22, 2003.

  1. susie

    susie Guest

    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
     
    susie, Nov 22, 2003
    #1
    1. Advertising

  2. 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
     
    Alan Corbett \(.NET MVP\), Nov 26, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Biao Tang
    Replies:
    0
    Views:
    478
    Biao Tang
    Apr 28, 2005
  2. TJS
    Replies:
    0
    Views:
    488
  3. D. Shane Fowlkes

    Format DataItem 'inline' as Currency/String?

    D. Shane Fowlkes, Jun 9, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,939
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Jun 9, 2005
  4. VB Programmer

    Format Currency for label

    VB Programmer, Sep 14, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    7,146
    VB Programmer
    Sep 14, 2005
  5. JeffP@Laptop

    How do I Format Currency w/out decimals?

    JeffP@Laptop, Dec 13, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    15,797
    =?Utf-8?B?RWx0b24gVw==?=
    Dec 15, 2005
Loading...

Share This Page