Quantcast
Channel: Technical Posts
Viewing all articles
Browse latest Browse all 14

Text Formatting made Easy in ASP.NET

$
0
0
In one of my project there was an requirement to display the Phone Numbers formatted according to US Standards(eg: 123-456-7890).I initially thought I have to insert the '-' symbol at the index values. But my goodness, this was made so easy in .Net String Formatting.For Example: Dim phone as Integer = 123456890String.Format("{0:###-###-####}", phone)This will be displayed as 123-456-7890Be a

Viewing all articles
Browse latest Browse all 14

Trending Articles