Coolite.Ext.Web命名空间

protected void Page_Load(object sender, EventArgs e)
        {
            if (!Coolite.Ext.Web.Ext.IsAjaxRequest)
            {
                //Coolite.Utilities.FileUtils.ReadFile();
                //Coolite.Utilities.StringUtils.PadLeft();
                //Coolite.Utilities.UrlUtils.IsUrl();
            }
            else
            {
                //Coolite.Ext.Web.Ext.Redirect("");
            }
        }

 

        private void BindCombox(ComboBox cb)
        {
            DataTable dt = new Bll.CoolingWater().GetAllCoolingWater();                


            Store ms = new Store();

            JsonReader reader = new JsonReader();

            reader.Fields.Add(new RecordField(dt.Columns[0].ColumnName));
            reader.Fields.Add(new RecordField(dt.Columns[1].ColumnName));

            ms.Reader.Clear();
            ms.Reader.Add(reader);           

            ms.DataSource = dt;
            ms.DataBind();

            //cb.StoreID = ms.ClientID;
            cb.StoreID = ms.ID;
            cb.DisplayField = dt.Columns[1].ColumnName;
            cb.ValueField = dt.Columns[0].ColumnName;
        }

原文:http://hi.baidu.com/38608338/blog/item/792f4ea589b0dbfe9152ee60.html

你可能感兴趣的:(命名空间)