Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Text box format
September 21, 2010
I am having amount textbox in th aspx page, i have display amount in the format of 999,999.
How to display?
if i use mask, if i want to enter 2000 then that is not user friendly,
any one knows the ansewer for this?
Posted Date: September 22, 2010 Points: 5
string str = "999999";
TextBox1.Text = str.Substring(1,3) + "," + str.Substring(4,6);
Posted Date: September 23, 2010 Points: 5
Thank you for your reply.
I can do this in code behind but i want to set the textbox format to display in that format,
like if i input value as 10000 in the textbox, it should show the value like 100,00. I think in Aspx page
or in js i have to do something.
Thanks and Regards,
To post reply
Related Questions Related Questions
report in text format
how will we convert the excel files into text format by using .net
Read a Particular format in text file in C#.net
How to write to a text file in C#
User can not select TEXT for copy paste from my .aspx page...
How to show hyperlink, Linkbutton text on the tiltle bar of Internet explorer...
How to restrict user to (ctrl+v) option for a text box..?
display text in other page using c#
display text in other page
disply contacts in text box seperated by cama
Latest Forum Questions From The Same Category
How do i get payment status in redirect page using bitpay?
Login with Facebook and Save details in database
Login with facebook account in my website
How to make a nested datalist control?
What class does Icon derive from?
What are the validation controls?
What''s the difference between an interface and abstract class?
How to read Unicode form PDF File and Save into DataBase ?
How to identify the color format of eps/tiff using c#?
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend