VB.NET
Dim Telno As Double = Double.Parse(ds.Tables(0).Rows(0)('TelNo').ToString())
Response.Write(Telno.ToString('###-###-####'))
C#
double Telno= double.Parse(ds.Tables[0].Rows[0]['TelNo'].ToString());
Response.Write(Telno.ToString('###-###-####'));
Share with