Posted on: 12/9/2014 12:47:28 PM | Views : 469

Hi folks, can someone help me with my if statement, having problems with the else part, ta
protected void Button1_Click(object sender, EventArgs e) { if (txtEmailAddress.Text == "0") ButtonCutOrderBookNow.Enabled = false; DataSet ds = new DataSet(); SqlConnection con = new SqlConnection(connectionString); SqlCommand cmd = new SqlCommand("AddCustomerDetails", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@Forename", SqlDbType.VarChar, 50).Value = txtCusForename.Text; cmd.Parameters.Add("@Surname", SqlDbType.VarChar, 50).Value = txtCusSurename.Text; cmd.Parameters.Add("@HouseNo", SqlDbType.VarChar, 50).Value = txtHouseNo.Text; cmd.Parameters.Add("@CustAddress", SqlDbType.VarChar, 50).Value = txtAddress.Text; cmd. ...

Go to the complete details ...