protected void btnSubmit_Click(object sender, EventArgs e) { PostageOptions o = new PostageOptions(); o.Price = Convert.ToDouble(pricePostage.Text); o.Description = descriptionPostage.Text; o.Name = namePostage.Text; o.ETA = Convert.ToInt32(etaPostage.Text); // Add new postage option if (hiddenID.Text.Equals("")) { QueryClass.AddPostageOption(o); } else { //Update Postage QueryClass.UpdatePostageOption(o); } Response.Redirect("ManagePostage.aspx"); }