Forums - C# Corner

Forum guidelines
Debopriyo Dey

Debopriyo Dey

  • 1.5k
  • 21
  • 2.2k

Retain data in a gridview on Page Reload

Aug 3 2017 5:00 AM
I have a gridview and its populated from a datatable. I have used Viewstate to hold the data. 
Now if I redirect to a new page from this page and again come back to this page, all my datas are lost and the gridview, datatable, viewstate is showing empty.
How can I retain the previous table inspite of page reload? 

Answers (4)