Converting Currency format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sijugeo
    New Member
    • Jul 2007
    • 42

    Converting Currency format

    Hi all,

    Myself having a textbox which is indented to enter the Currency of a particular good, and its working fine.

    Now the problem is , I want to format the way currency looks like. ie, a ',' is needed after every thousand. eg, xx,xxx,xxxx,xxx ,xxx.00 likewise.

    I want to do it while entering the value itself and have to use ASP.NET localize for that. I'm still confused about it. anyone have any idea?

    Asp.net 2.0, c#


    Thanks,
    Siju George
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by sijugeo
    Hi all,

    Myself having a textbox which is indented to enter the Currency of a particular good, and its working fine.

    Now the problem is , I want to format the way currency looks like. ie, a ',' is needed after every thousand. eg, xx,xxx,xxxx,xxx ,xxx.00 likewise.

    I want to do it while entering the value itself and have to use ASP.NET localize for that. I'm still confused about it. anyone have any idea?

    Asp.net 2.0, c#


    Thanks,
    Siju George
    Since you want to do this while the value is being entered you are going to have to develop a Client Side script (using JavaScript) to format the TextBox's contents during the "onkeyup" event.

    -Frinny

    Comment

    Working...