[問題] 利用dropdownlist來篩選gridview

看板C_Sharp (C#)作者 (一拳打死牛)時間10年前 (2015/03/17 18:18), 10年前編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
在此請問各位 我想要做一個利用學生名單系統,並利用dropdownlist來篩選班級 protected void Dropdownlist_SelectIndexChanged(object sender, EventArgs e) { Sqldatasouce.SelectCommand = "<Select 函數式>" Sqldatasouce.Update(); } 結果我在此程式下中斷點發現,即使dropdownlist有更動,也沒有跑入此程式 請各位大大指引解決方向,感激! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 210.71.2.148 ※ 文章網址: https://www.ptt.cc/bbs/C_Sharp/M.1426587519.A.6BB.html

03/17 19:08, , 1F
autopostback屬性要設定為true
03/17 19:08, 1F
謝謝totte大大指教! ※ 編輯: LeeYK (118.160.162.192), 03/17/2015 21:43:46
文章代碼(AID): #1L1_z_Qx (C_Sharp)
文章代碼(AID): #1L1_z_Qx (C_Sharp)