.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Text box format

Posted By: Asha.MP     Posted Date: September 21, 2010    Points:2   Category :ASP.Net
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?

Responses
Author: Deco             
Posted Date: September 22, 2010     Points: 5   

string str = "999999";
TextBox1.Text = str.Substring(1,3) + "," + str.Substring(4,6);


Regards,
Deco
Author: Asha.MP             
Posted Date: September 23, 2010     Points: 5   

hi...

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,
Asha.mp


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend