protected void btnCancel_Click(object sender, EventArgs e) { if (ViewState["Isbtn"].ToString() == "0") { int OpId = Convert.ToInt32(Request["OfferPriceId"].ToString()); OfferPriceInfo.DelProductTypeList(OpId); OfferPriceInfo.DelOfferPrice(OpId); } Response.Redirect("PriceApply.aspx"); }