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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -