Click here to Skip to main content
15,884,975 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i pass objects from pages to pages in Asp.Net
Posted

Try
How to: Pass Values Between ASP.NET Web Pages[^]

[Edited]
You can save object in Session or Cache and then redirect to other page? Let’s say you have a.aspx in a.aspx you add item to Session.
Session["Item"] = myObjectInstance;
in b.aspx you will get object;
var myObjectInstance = (MyObjectInstance) Session["Item"];
but you should check if anyvalue is set in Session before using it.

Reference Link Stackoverflow[^]
have a go there[^] having same question with some perfect solutions.
 
Share this answer
 
v2
Comments
version_2.0 18-May-11 7:20am    
I am not telling about passing string values from page to pages...
RaviRanjanKr 18-May-11 7:40am    
Now Check :)
version_2.0 18-May-11 7:51am    
thanks... :-)
How do i pass objects from pages to pages
Session?
Application variable?

You can also use other state-management techniques like Cookies, PreviousPage concept, etc.

Try as per your need.
 
Share this answer
 

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



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