protected void Page_Load(object sender, EventArgs e) { long regionId = 0; if (!string.IsNullOrEmpty(Request.QueryString["regionId"]) && long.TryParse(Request.QueryString["regionId"], out regionId)) { thisTaxRegion = genBll.GetSingleGeneral(regionId, true); } long cateId = 0; if (!string.IsNullOrEmpty(Request.QueryString["cateId"]) && long.TryParse(Request.QueryString["cateId"], out cateId)) { thisTaxCate = genBll.GetSingleGeneral(cateId, true); } long id = 0; if (!string.IsNullOrEmpty(Request.QueryString["id"]) && long.TryParse(Request.QueryString["id"], out id)) { thisCate = genBll.GetRegionCate(id); } if (thisCate != null) { isAdd = false; thisTaxRegion = genBll.GetSingleGeneral(thisCate.tax_region_id, true); thisTaxCate = genBll.GetSingleGeneral(thisCate.tax_cate_id, true); taxList = genBll.GetCateTaxList(thisCate.id); } }