Save page values, leave and refresh later

X

xzzy

1. What asp.net page event would I use to save the values of the controls
just before a page closes?

-- remainder of scenario --

2. close the page and open a different page

3. open a new instance of the first page and initialize the controls' values
with those saved in step #1



Thank you
 
B

Bruno Alexandre

you can always use Page_Unload event to write the code that will save
in a cookie for example what you want to be saved before the page
unload

Bruno Alexandre
 
X

xzzy

in Page_Unload, the controls don't seem to have values anymore. Also,
looking at the screen at this point ( in Page_Unload ) the item selected in
a listbox is still selected, but it's .Selected is a value of false
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top