protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { List<SysDepartment> deptlist = new List<SysDepartment>(); SysDepartmentBiz deptbiz = new SysDepartmentBiz(); deptlist = deptbiz.SelectDeptByUser(userid); AddDatasource("deptlist", deptlist); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { List<SysDepartment> deptlist = new List<SysDepartment>(); SysDepartmentBiz deptbiz = new SysDepartmentBiz(); deptlist = deptbiz.SelectDeptByUser(userid); AddDatasource("deptlist", deptlist); List<SysNation> nationlist = new List<SysNation>(); SysNationBiz nationbiz = new SysNationBiz(); nationlist = nationbiz.Select(); AddDatasource("nationlist", nationlist); List<SysEducation> educationlist = new List<SysEducation>(); SysEducationBiz edbiz = new SysEducationBiz(); educationlist = edbiz.Select(); AddDatasource("educationlist", educationlist); } }