グリッド ビューの次のページへのリンク ボタンの特定のクリックのインデックス ID を取得するにはどうすればよいですか?
私のコード:ここでは隠しフィールドを使用しています
If e.CommandName = "facilitywell" Then
Dim routeId As String = CType(gView.Rows(indexNum).FindControl("lblpid"), Label).Text
'CType(gView.Rows(indexNum).FindControl("hfRouteid"), HiddenField).Value
Response.Redirect("~/frmRouteFacilityWell.aspx?routeId=" + routeId
ソースページコード:
<asp:LinkButton ID="lbRouteFacilityWell" runat="server" CommandName="facilitywell">FacilityWell</asp:LinkButton>