|
反馈BUG
程序版本: |
FineUI_v4.0.5_source_all |
浏览器: |
Chrome 其它(请在帖子中注明浏览器及版本) |
BUG截图: |
|
BUG地址: |
- |
本帖最后由 Hanland 于 2014-4-4 09:44 编辑
- <f:DropDownList ID="ddlsProType" AutoPostBack="true" OnSelectedIndexChanged="ddlsProType_SelectedIndexChanged"
- runat="server" EnableEdit="True" OffsetRight="0px">
- </f:DropDownList>
复制代码- string sql = "select '请选择产品类型查询' as ProType union all select distinct ProType from tb_Parts";
- ddlsProType.DataSource = db.ds(sql);
- ddlsProType.DataValueField = "ProType";
- ddlsProType.DataTextField = "ProType";
- ddlsProType.DataBind();
复制代码- try
- {
- string sql = "select a.ID,a.ProType,b.CmpCode,a.PartID,a.PartName,c.PartClass,d.PartDepSort,a.PlanPrice,e.Storehouse,a.IsUse,f.UserName as AddUser,a.AddDate,g.UserName as ModUser,a.ModDate from tb_Parts as a left join tb_CmpCode as b on a.CmpCodeID=b.CmpCodeID left join tb_PartClass as c on a.PartClassID=c.PartClassID left join tb_PartDepSort as d on a.PartDepSortID=d.PartDepSortID left join tb_Storehouse as e on a.StorehouseID=e.StorehouseID left join tb_UserInfo as f on a.AddUserID=f.UserID left join tb_UserInfo as g on a.ModUserID=g.UserID where a.ProType='" + ddlsProType.SelectedItem.Text + "'";
- ds = db.ds(sql);
- DataTable dt = ds.Tables[0];//获取数据源
- if (dt.Rows.Count > 0)
- {
- PagedDataSource pds = new PagedDataSource();
- pds.DataSource = dt.DefaultView;
- this.Grid2.DataSource = pds;
- //可以绑定到Gridview 、datalist等数据控件上,此处为Gridview
- this.Grid2.DataBind();
- }
- else
- {
- Grid2Bing();
- }
复制代码
绑定的数据中如果出现特殊字符,比如:罗马数字或者乘号之类,DropDownList在选择第一项时无法进入事件。绑定数据中,英文数字汉字一切正常!
测试浏览器:Chrome,IE8,IE10,IE11
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|