protected void Page_Load(object sender, EventArgs e) { userManager theUserManager = (userManager)Session["theUserManager"]; string theCompanyCode = theUserManager.getCompanyCode(); string theUserID = theUserManager.getUserId(); if (!IsPostBack) { List <LineSideStoreEntity> stores = LinesideStoreFactory.GetAll(); List <PlanEntity> dataSource = PlanFactory.GetByUserID(theUserID); PlanCode.DataSource = dataSource; PlanCode.ValueField = "ORDER_CODE"; PlanCode.TextField = "ORDER_CODE"; PlanCode.DataBind(); } setCondition(); }