473,396 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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

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
Nov 19 '05 #1
4 1029
Have your class write it somewhere or put the object into the session data
after it's filled.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Nick Wouters" wrote:
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

Nov 19 '05 #2
Usually avoided however, in ASP.NET you *might* be able to store the object
in the session.
"Nick Wouters" <nw*@cosco.be> schreef in bericht
news:43***********************@news.skynet.be...
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

Nov 19 '05 #3
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.
"Nick Wouters" wrote:
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

Nov 19 '05 #4
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

"Curt_C [MVP]" <software_at_darkfalz.com> wrote in message
news:3C**********************************@microsof t.com...
Have your class write it somewhere or put the object into the session data
after it's filled.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Nick Wouters" wrote:
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

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Tom | last post by:
I am new to C# and VS.Net. How do I test inidividual classes? I'm used to Java where a Main method for every class to test it. However, VS sees each Main method as an entry point into the .exe. What...
17
by: Davíð Þórisson | last post by:
now in my web I have some global variables to be used in many different subpages, in the old ASP I simply loaded a variables.asp file into memory using the eval() function. Now I'd like to use XML...
15
by: Joe Fallon | last post by:
I would like to know how you can figure out how much memory a given instance of a class is using. For example, if I load a collection class with 10 items it might use 1KB, and if I load it with...
3
by: Ross McLean | last post by:
Hi all, I've been teaching myself C# for a new project at work. I have a bit of a background in c++ and java but never been what you could call a guru. I'm having some strange things happening...
6
by: David Veeneman | last post by:
How do I configure a .NET 2.0 SoundPlayer object to play a WAV file embedded as a resource? I have tried the example in the MSDN documentation, and I am getting nowhere. Is there a simple...
4
by: Peter Sutcliffe | last post by:
In VS2003 I had a class library project that I started via a URL and I had ASP.NET debugging enabled to allow me to debug the web pages code behind in my project. I have moved the app to VS2005...
4
by: Sami Rehman | last post by:
Hi I want to use namespaces to organize all the classes, web forms, and user controls. It works fine with my user defined classes, but when I try to put all the web pages in a namespace for...
6
by: TS | last post by:
I cannot get this to work. I added an app.config to a project i reference from my web application project (vs 05) but can see no way to access the settings within it. the other thing is that I...
1
by: shalini jain | last post by:
Hi, I want to know how can we do pagination using XSL. There are number of tutorials available on pagination using PHP but nothing with XSL. i am really stuck with my code. Below is the code that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.