Home > Net >  On asp.net, c #, which is one to the gridview control values
On asp.net, c #, which is one to the gridview control values

Time:09-19


Want to do such a function, found the corresponding feedback and then in the text box input corresponding reply click on send button after the corresponding display content updates a reply, and now the page is not the same as the id value do I need to do to remove the display the contents of the id value and display on the outside of the gridview control feedback users are under each record id value

CodePudding user response:

In the gridview Rowdatabound take, or in the event of an PageIndexChanged taking

CodePudding user response:

reference 1st floor Probieone response:
in the gridview Rowdatabound get or take in the event of PageIndexChanged


I tried to take in pageindexchanged because a page shows a value, I first is set to id value is the same as the page but see screenshot is clearly not my idea now is to want to put the id value caught and then in the gridview outside label control, so the other method in the cs can use this id value

CodePudding user response:

Directly put the id of the gridview Datakeynames when operating a row, direct access to the values in the Datakeynames is OK

CodePudding user response:

Then get the value assigned to a control label you want