protected void btnSearch_Click(object sender, EventArgs e) { if((txtAmount.Text == "") || (txtPerson.Text == "")) { Response.Write("please enter amount"); } else { double amount = int.Parse(txtAmount.Text); double persons = int.Parse(txtPerson.Text); double result = amount / persons; d.Price = Convert.ToInt32(result); d.Select(d); Display(); }Line 39: else Line 40: { Line 41: double amount = int.Parse(txtAmount.Text); Line 42: double persons = int.Parse(txtPerson.Text); Line 43: double result = amount / persons;
Line 39: else Line 40: { Line 41: double amount = int.Parse(txtAmount.Text); Line 42: double persons = int.Parse(txtPerson.Text); Line 43: double result = amount / persons;