I'm working on my first web forms application and I'm running into an interesting problem. I have two pages in my application- one is the main page where the user can manipulate information on the page, and the other is an information retrieval page that lets the user select which information he/she would like to see on the main page. I have a function attached to a button on the main page that immediately uses Server.Transfer to send the browser to my selection page. After the user selects some data, they press another button that uses Server.Transfer to send them back to the main page. I had thought that the flow of the program would return to just below the first transfer call, but it looks like the browser is just reloading the main page in its original state.
The question is as such: how do I make it so that the program flow will return to the place that it left in my function so that I can retrieve information from the previous form and do something with it? Thanks in advance!