I have created a gridview for populating data, and some user control (TextBox) to update the data and gridview paging. and on the bottom there’s a button to update the user input.
the table is basically populating names from table and the textbox is for updating that name.
[table]
123456..>>
[button]
when I go to next page, the data i’ve inserted from previous page are lost.
Is there any way to keep the data while i navigate to next page?
The paging mechanism of the gridview causes a postback. It sounds like your controls are not saving their information into the viewstate or perhaps on a reload of the page they are resetting to the default values or you haven’t saved your information at all on the postback so it is just reloading everything from the original data source.
Check that your viewstate is on for these controls and make sure you aren’t resetting values in the code behind such as the page load and if you are needing to save information back to the data source that this is occuring.