请问aspxcombobox的用法,请高手给点意见,谢谢 使用两个ASPxComboBox控件,如ASPxComboBox1,ASPxComboBox2,当选择ASPxComboBox1的某一项时,ASPxComboBox2跟着也会在变化,请问这个要怎么实现 ASPXComboBox都是固定的Text和Value 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public void DroplistBind() { //绑定费用中心号 string select_Text = "select 费用中心号 from xt_tc_FinanceCenter"; DataSet dataset = DbHelperSQL.Query(select_Text); ASPxComboBox2.Text = string.Empty; ASPxComboBox2.Items.Clear(); for (int i = 0; i < dataset.Tables[0].Rows.Count; i++) { string Name = dataset.Tables[0].Rows[i]["费用中心号"].ToString(); ASPxComboBox2.Items.Add(new ListEditItem(Name, Name)); } select_Text = "select 单位编码,单位名称 from xt_vc_FinanceCenter where 费用中心号='" + ASPxComboBox2.Text+ "'"; dataset = DbHelperSQL.Query(select_Text); ASPxComboBox1.Items.Clear(); for (int i = 0; i < dataset.Tables[0].Rows.Count; i++) { string Name = dataset.Tables[0].Rows[i]["单位名称"].ToString(); string value = dataset.Tables[0].Rows[i]["单位编码"].ToString(); ASPxComboBox1.Items.Add(new ListEditItem(value, Name)); } } 明确的告诉你是Text,并且value里面的值要为数字型,0,1,2、、、我就吃了很大的亏啊 高分求教Ext.net问题 在gridview内某一列前面加上红色的RMB 非哥 引用究竟又什么作用啊 int& 使用silverlight构建一个工作流设计器(十七)-持久化数据到数据库—设计webservices接口 一个关于用户注册的问题 5个文本框形成的查询问题,现场等 关于LinQ to SQL 和 LinQ to Entity的问题 CreateUserWizard超奇怪问题 aspx网页中能使用unsafe代码块吗(一定给分)? 关于blockui的拓展功能 服务器问题 IIS 自动获取VSS2005最新版本
{
//绑定费用中心号
string select_Text = "select 费用中心号 from xt_tc_FinanceCenter";
DataSet dataset = DbHelperSQL.Query(select_Text);
ASPxComboBox2.Text = string.Empty;
ASPxComboBox2.Items.Clear();
for (int i = 0; i < dataset.Tables[0].Rows.Count; i++)
{
string Name = dataset.Tables[0].Rows[i]["费用中心号"].ToString();
ASPxComboBox2.Items.Add(new ListEditItem(Name, Name));
} select_Text = "select 单位编码,单位名称 from xt_vc_FinanceCenter where 费用中心号='" + ASPxComboBox2.Text+ "'";
dataset = DbHelperSQL.Query(select_Text);
ASPxComboBox1.Items.Clear();
for (int i = 0; i < dataset.Tables[0].Rows.Count; i++)
{
string Name = dataset.Tables[0].Rows[i]["单位名称"].ToString();
string value = dataset.Tables[0].Rows[i]["单位编码"].ToString();
ASPxComboBox1.Items.Add(new ListEditItem(value, Name));
}
}