作者LeeYK (一拳打死牛)
看板C_Sharp
标题[问题] 利用dropdownlist来筛选gridview
时间Tue Mar 17 18:18:33 2015
在此请问各位
我想要做一个利用学生名单系统,并利用dropdownlist来筛选班级
protected void Dropdownlist_SelectIndexChanged(object sender, EventArgs e)
{
Sqldatasouce.SelectCommand = "<Select 函数式>"
Sqldatasouce.Update();
}
结果我在此程式下中断点发现,即使dropdownlist有更动,也没有跑入此程式
请各位大大指引解决方向,感激!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 210.71.2.148
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_Sharp/M.1426587519.A.6BB.html
1F:推 totte: autopostback属性要设定为true 03/17 19:08
谢谢totte大大指教!
※ 编辑: LeeYK (118.160.162.192), 03/17/2015 21:43:46