Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 536
  • Last Modified:

UpdatePanel , data loss in textboxes when moved between pages.

Hi Experts,
Please help
I have two pages page1.aspx ( with Grid and Grid has TextBoxes) everything is enclosed in UpdatePanel. I have a button to move to next page (page2.aspx using response.redirect("page2.aspx")....
In page2.aspx ... when i click back button,, the values inside page1.aspx are lost.

can any one suggest me how to do this...
0
Deathrace
Asked:
Deathrace
  • 3
  • 2
1 Solution
 
VikramMullickCommented:
Store the values in session , when you grom Page1 to page2.
Retrieve these values , when you come back to the Page1
0
 
DeathraceAuthor Commented:
No, its going to be a big problem ,,there are lots of variable and values i need to store in session,,, please suggest me another apporach..
0
 
DeathraceAuthor Commented:
Any one can help me please
0
 
VikramMullickCommented:
You create a serialized class , with its properties signifying value of the variables.
Store the object of the class in the session.
Hence only one session variable will be required.
0
 
DeathraceAuthor Commented:
Thanks for your answer,,
but here is the best solutions for this.... its a ready made solution by Martin Jericho
http://www.codeproject.com/KB/applications/persistentstatepage.aspx?fid=73573&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=26
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now