[問題] 利用dropdownlist來篩選gridview

作者: LeeYK (一拳打死牛)   2015-03-17 18:18:33
在此請問各位
我想要做一個利用學生名單系統,並利用dropdownlist來篩選班級
protected void Dropdownlist_SelectIndexChanged(object sender, EventArgs e)
{
Sqldatasouce.SelectCommand = "<Select 函數式>"
Sqldatasouce.Update();
}
結果我在此程式下中斷點發現,即使dropdownlist有更動,也沒有跑入此程式
請各位大大指引解決方向,感激!
作者: totte (totte)   2015-03-17 19:08:00
autopostback屬性要設定為true

Links booklink

Contact Us: admin [ a t ] ucptt.com