protected void Button1_Click1(object sender, EventArgs e) { Decimal a, b; bool isAValid = Decimal.TryParse(TextBox1.Text, out a); bool isBValid = Decimal.TryParse(TextBox2.Text, out b); if (isAValid && isBValid) Label2.Text = (a * b).ToString(); else Label2.Text = "Invalid input"; } }
rezaeti wrote:Is Necessary to chang type of field or change my code?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)