protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //ProvinceService pvDal = new ProvinceService(); IList <ExpressInfo> list = CacheCollection.GetAllExpressInfo(); //esDal.GetAllExpressInfo(""); ddl_Express.DataSource = list; ddl_Express.DataTextField = "ExpressName"; ddl_Express.DataValueField = "ExpressId"; ddl_Express.DataBind(); IList <ProvinceInfo> plist = CacheCollection.GetAllProvinceInfo(); //pvDal.GetAllProvince(); ddl_Pr.DataSource = plist; ddl_Pr.DataTextField = "ProvinceName"; ddl_Pr.DataValueField = "ID"; ddl_Pr.DataBind(); Bind(); } }
protected string GetExpress(string eid) { return(CacheCollection.GetAllExpressInfo().Where(o => o.ExpressId.ToString() == eid).ToList()[0].ExpressName); }