ASP.NET - RowCommand Find Control [VB]
asp.net [VB] 筆記之 GridView 應用,請安心服用。
GridView 中,常常在點擊按鈕事件後,要抓取該列中的控制項值。
範例情況:
在 GridView 中,點擊 Button 後,取得列中 DropDownList 之 value
步驟程序:
RowCommand → Get RowIndex → FindControl → SelectedValue
1.本次事件建立於 RowCommand 中
Protected Sub grid_RowCommand(send...
blog.robby570.tw1 min read