如何在网格视图中获取特定单击链接按钮到下一页的索引 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>