protected void Page_Load(object sender, EventArgs e) { long regionCateId = 0; if (!string.IsNullOrEmpty(Request.QueryString["regionCateId"]) && long.TryParse(Request.QueryString["regionCateId"], out regionCateId)) { thisCate = genBll.GetRegionCate(regionCateId); } long id = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"]) && long.TryParse(Request.QueryString["id"], out id)) { thisCateTax = genBll.GetCateTax(id); } if (thisCateTax != null) { isAdd = false; thisCate = genBll.GetRegionCate(thisCateTax.tax_region_cate_id); } if (thisCate == null) { Response.Write("<script>alert('未获取到税收类型信息!');window.close();</script>"); } }