protected void Page_Load(object sender, EventArgs e) { dptype = NewsTypeService.GetChildTypeByParentIdDefault(0); if (!IsPostBack) { if (!string.IsNullOrEmpty(Request["type"])) { int ptype = int.Parse(Request["type"]); int pid = NewsTypeService.GetPid(int.Parse(Request["type"])); if (pid == 0) { ptype = int.Parse(Request["type"]); } else { ptype = pid; } _cssType = ptype.ToString(); } } }