Posted on: 11/25/2014 4:33:25 PM | Views : 377

Hi folks, I’m having problems with my Response.Redirect, error message “Newline in Constant” code below
protected void ButtonConfirmOrder_Click(object sender, EventArgs e) { // Add Fake Delay to simulate long running process. System.Threading.Thread.Sleep(5000); string connectionString = ConfigurationManager.ConnectionStrings["TyreSannerSQLConnectionString"].ConnectionString; DataSet ds = new DataSet(); SqlConnection con = new SqlConnection(connectionString); SqlCommand cmd = new SqlCommand("TermsConditions", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add("@Terms", SqlDbType.VarChar, 50).Value = chboxTerms.Text; con.Close(); con.Dispose(); { Response.Redirect("~/Pages/Completed.aspx); } }

Go to the complete details ...