I’m writing a code to process a form which consists of multiple pages of collecting information from the user. It’s in ASP.NET w/ C#.
So I thought instead of using Post to pass between pages, I’d use Session to store them.
My flow is that each page gets the Post values from its previous page and instantly assign them into corresponding Session variables under the same identifiers.
Is there a simple way to handle it instead of manually assign each variable?
Some codes will be greatly appreciated.
You can create a (POCO) class, set your values on the class, then place that class in session. Then on the next page get that class from session and modify as needed…and do that for all your pages.
(EDIT)SIMPLE EXAMPLE: