Using class properties through all asp.net pages in 1 project

N

Nick Wouters

Please Help, I am a starting ASP.NET programmer...

I have created a class user.vb and compiled it to dll
I can fill the records from this database into the properties and
collections.

My problem is I want to transfer all the information in this object to
another aspx-page...

How can I do this?

Thanks in advance

Nick Wouters
Newbie
 
E

Edwin Knoppert

Usually avoided however, in ASP.NET you *might* be able to store the object
in the session.
 
G

Guest

Have your class write it somewhere or put the object into the session data
after it's filled.
 
G

Guest

If the class got only few proprties, you could store them in session (either
individual values or the whole object)

Sounds like, there is alreday a tables(s) which can hold data in the
properties & collections of the object. Storing the properties & collections
back to the DB before moving to the next page and Populating the Object again
from DB in the next page would be a good choice for large objects.
 
N

Nick Wouters

correct,

but when I am using this session in another ASP.net project on the SAME
server , the session is empty
It seems sessions are lost when you redirect to another page on the same
server but within another project in the SAME solution.

Sounds strange to me, I always thought session were kept on the server,
perhaps I could try to save my sessions in an sql database, but is it
possible for objects like an instance of a class?

Hope someone can help me out!

Best regards

Nick Wouters
Belgium newbie
 

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

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top