ASP.NET with C# and SQL SERVER , some vb.net . asp.net examples, asp.net codes, asp.net programs, c# code, sql server queries, important codes.
Sunday, 2 December 2012
Sql server Split String
string term =txt_term.Text;
try
{
string[] a = term.ToString().Split('.');
if (Convert.ToInt32(a[1]) < 11)
{
if (Convert.ToInt32(a[1]) < 10)
{
txt_term.Text = a[0].ToString() + "." + "0" + a[1].ToString();
}
}
else
{
txt_term.Text = a[0].ToString() + "." + "11";
}
}
catch
{
}S
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment