Click here to Skip to main content
15,614,257 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
At the moment I pass values from one page to another. I need to pass objects between pages, how can I do this 'without Session'.
Mayur Panchal 16-May-13 9:02am    
I think, You can use ViewState.
[no name] 16-May-13 9:09am    
if any example than good for me.
Sergey Alexandrovich Kryukov 16-May-13 9:45am    
Objects, not values? Well, well...

Refer below link :

Access ViewState Across Pages[^]
Share this answer
You can make use of Context. Its capable of storing objects also.Its important to note here that context saves information only for the CURRENT request.So if you do postback on the page you are passing the objects then it will be lost,so be carefull using the same.You can have very good explaination on the below link

State management with Context.Items in ASP.NET

Passing values from a page to another by means of the Context object

Passing Values from One Page to Another Page – ASP.NET

Passing Data Between Pages: by Persist
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900