Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to all,

How can do decimal TextBox in Ajax?

It text default 000,000.000
And when I write on it this default change.

I mean when I need write 100500, this default should become 100,500.000.
Posted
v2
Comments
Did you check my answer?

Asp.Net
You need to use MaskedEdit Demonstration[^].
You can see some demo textboxes here.

Put your MaskType in the Extender Markup (which is a property of that control MaskedEditExtender control) and see how it works in your page.

Refer - Using AJAX Textbox Extenders[^] to explore more on Ajax TextBox Extenders.

jQuery
You can also do it using jQuery plugin- Masked Input Plugin[^]
 
Share this answer
 
ASP.NET
<asp:maskededitextender id="MaskedEditExtender1" runat="server" mask="999,999,999,999" masktype="Number" inputdirection="RightToLeft" targetcontrolid="textbox" acceptnegative="Left" DisplayMoney="Left" ErrorTooltipEnabled="True">
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900