vb.net - Get Index ID by Click on Link Button -
how index id of particular click on link button next page in grid view?
my code: here use hidden field in it
if e.commandname = "facilitywell" dim routeid string = ctype(gview.rows(indexnum).findcontrol("lblpid"), label).text 'ctype(gview.rows(indexnum).findcontrol("hfrouteid"), hiddenfield).value response.redirect("~/frmroutefacilitywell.aspx?routeid=" + routeid
source page code:
<asp:linkbutton id="lbroutefacilitywell" runat="server" commandname="facilitywell">facilitywell</asp:linkbutton>
lblpid= gview.selectedrows(0).cells("lblpid").value
try this
Comments
Post a Comment