Page Refresh deleting values

c19h28O2

Member
Joined
Jul 24, 2006
Messages
6
Programming Experience
1-3
Hi,

I am using a web form which has a few text boxes and and button with a popup calendar, the only way i can transfer the value from calendar to the main webform is to use a session variable and then refresh the page and assign the value in the page_load event. However once the page is refreshed all the values in the text boxes are deleted, anyway to keep these while the page refreshes? or do i need to place all the values in session variables too?

Thanks

Michael
 
In my opinion, the best solution would be to use a javascript type popup calendar that show within the same page instead of opening a new window with the calendar. There are many calendar controls available for free, just google for them.

How are you refreshing the page?
The thing you need to understand about webpages is that they are stateless and all control values are persisted between postbacks using ViewState and ASP.NET state management.
 
Back
Top