作者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/m.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