Regards, Jayakumar Selvakani
string Value = txtName.Text; int num; decimal dec; if (int.TryParse(Value, out num )) { Label1.Text = "int"; } else if (Decimal.TryParse(Value, out dec)) { Label1.Text = "decimal"; } else { Label1.Text = "string"; }
Login to post response