replace the '.' with a ','

Oi....

 I need to build a small programm in ASP.NET and chose to use C# for it.
Now i got everything working but there's one little problem.
the first textbox is a double. I need to make it so that when someone enters a "." then it gets replaced by a ","

any ideas?

Ghan

 

0 Ghan27 9/2/2006 1:37:12 PM

string blah = "4.2.2.2";
blah = blah.Replace(".", ",");

Ryan 


Ryan Olshan
ASPInsider | Microsoft MVP, ASP.NET
http://ryanolshan.com

How to ask a question
0 StrongTypes 9/2/2006 3:47:03 PM
Reply:

(Thread closed)