FineUI 官方论坛
标题:
CheckBoxList 后台动态生成 SelectedIndexChanged事件方法没有触发
[打印本页]
作者:
huntbbbilly
时间:
2015-4-3 09:33
标题:
CheckBoxList 后台动态生成 SelectedIndexChanged事件方法没有触发
CheckBoxList 后台动态生成 SelectedIndexChanged事件方法没有触发 已经启用AutoPostBack
listName = className;
chkList = new CheckBoxList();
chkList.ID = "chkList"+classID;
chkList.DataTextField = "Name";
chkList.ColumnNumber = 4;
chkList.ColumnWidth = "20px";
chkList.RowHeight = "10px";
chkList.Label = listName;
chkList.DataValueField = "Id";
chkList.AutoPostBack = true;
chkList.SelectedIndexChanged += new EventHandler(chkSelectedIndexChanged);
protected void chkSelectedIndexChanged(object sender, EventArgs e)
{
Alert.ShowInTop("列表三选中项的值:");
}
求高手请教
作者:
jakesoft
时间:
2016-11-26 19:33
放到page_init中生成.
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4