Last post Sep 25, 2009 02:34 AM by Rajneesh Verma
Sep 25, 2009 01:03 AM|Prachi1219|LINK
I have a problem regarding textbox value.
I have one aspx page which uses user control to display data. The usercontrol consists of one textbox (to display current pageindex of grid view), two link buttons (to navigate backward and forward) and a gridview.
On page load, gridview binds with 0th page index. After consequent changes in textbox, gridview binds page according to textbox value.
When I press ctrl + F5, the gridview binds with 0th page index and textbox value set accordingly, but when I press only F5, the gridview binds with 0th page index and textbox text value doesn't get changed.
Thanks in advance for help
Sep 25, 2009 02:34 AM|Rajneesh Verma|LINK
To preserve and retain your textbox value on page refresh you should use view state or session variable....................