Passing Objects between Pages

V

VijayAnand

hi all,
In a Web Application i want to add details in a class's object
and pass the object from one page to another page and then retrieve
the details from the object in the latter page.how can i do this.

VijayAnand.
 
C

chanmm

use session variable

VijayAnand said:
hi all,
In a Web Application i want to add details in a class's object
and pass the object from one page to another page and then retrieve
the details from the object in the latter page.how can i do this.

VijayAnand.



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 
K

Kevin Spencer

You can add the instance of the class to the first page's Context, and use
Server.Transfer to transfer control to the second page. The Context is
transferred with the execution thread, and you can then fetch the class back
out of the Context.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

VijayAnand said:
hi all,
In a Web Application i want to add details in a class's object
and pass the object from one page to another page and then retrieve
the details from the object in the latter page.how can i do this.

VijayAnand.



----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption
=---
 
P

Prodip Saha

And, you must cast the session variable when you retrieve.
eg.
class2 test2=null;
test2=(class2) Session["variablename"];

Prodip
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top