473,408 Members | 2,402 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,408 software developers and data experts.

Object persistence

Hello,

I have a page (page1.aspx) that builds some complex .NET objects.
I successfully pass these objects to another different window (page2.aspx).
How can I persist these objects on a POST back of the same window
(page2.aspx)?

Thank you
Marcel
Nov 18 '05 #1
4 1562
Marcel Balcarek wrote:
Hello,

I have a page (page1.aspx) that builds some complex .NET objects.
I successfully pass these objects to another different window (page2.aspx).
How can I persist these objects on a POST back of the same window
(page2.aspx)?

Thank you
Marcel

You can use the session object to store them, or you even better you can
store them in view state of the page itself, so that you dont have to
worry about server resources and stuff ..
Nov 18 '05 #2
Hi Marcel,

Static variables, Session variable, Application variable, Viewstate.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
From: "Marcel Balcarek" <ma*************@REM-OVEMEtoxicall.com>
Subject: Object persistence
Date: Thu, 15 Apr 2004 10:34:00 -0600
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <u7**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: c-67-165-238-210.client.comcast.net 67.165.238.210
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:225884
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hello,

I have a page (page1.aspx) that builds some complex .NET objects.
I successfully pass these objects to another different window (page2.aspx).
How can I persist these objects on a POST back of the same window
(page2.aspx)?

Thank you
Marcel


Nov 18 '05 #3
Hi Jim,

Thanks for the info. Due to the size of the objects I am persisting, and
the low bandwidth some of my customers enjoy, I have decided to serialize
my objects and use the binaryFormatter, and then store them as byte arrays
in a general DB table that has an image column.

I discounted viewstate because of its sheer size (network traffic) - I
tested viewstate with a tiny object (2 Int32s) and it added about 3 lines to
my HTML output.
I discounted session variables because that solution is not scalable for
large amounts of data.

Other than initial setup effort, my solution should be ok no?

Marcel

"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:Jp**************@cpmsftngxa06.phx.gbl...
Hi Marcel,

Static variables, Session variable, Application variable, Viewstate.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
From: "Marcel Balcarek" <ma*************@REM-OVEMEtoxicall.com>
Subject: Object persistence
Date: Thu, 15 Apr 2004 10:34:00 -0600
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <u7**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: c-67-165-238-210.client.comcast.net 67.165.238.210
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:225884X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hello,

I have a page (page1.aspx) that builds some complex .NET objects.
I successfully pass these objects to another different window (page2.aspx).How can I persist these objects on a POST back of the same window
(page2.aspx)?

Thank you
Marcel

Nov 18 '05 #4
Hi Marcel,

That should work fine. It's worth mentioning that if you are not making
heavy use of Session state otherwise, you can use SqlServer Session state
and make this process automatic and much easier to implement. Bear in mind
that if you ARE making heavy use of Session state elsewhere in your app,
you will see performance degradation if you move from InProc to SqlServer
mode for Session state.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
From: "Marcel" <ma************@REMOVEMEmsn.com>
References: <u7**************@TK2MSFTNGP11.phx.gbl> <Jp**************@cpmsftngxa06.phx.gbl>Subject: Re: Object persistence
Date: Sat, 17 Apr 2004 14:43:23 -0600
Lines: 66
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <Oc**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 168-103-77-32.dnvr.qwest.net 168.103.77.32
Path: cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP09
.phx.gblXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:227215
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hi Jim,

Thanks for the info. Due to the size of the objects I am persisting, and
the low bandwidth some of my customers enjoy, I have decided to serialize
my objects and use the binaryFormatter, and then store them as byte arrays
in a general DB table that has an image column.

I discounted viewstate because of its sheer size (network traffic) - I
tested viewstate with a tiny object (2 Int32s) and it added about 3 lines tomy HTML output.
I discounted session variables because that solution is not scalable for
large amounts of data.

Other than initial setup effort, my solution should be ok no?

Marcel

"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:Jp**************@cpmsftngxa06.phx.gbl...
Hi Marcel,

Static variables, Session variable, Application variable, Viewstate.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.
--------------------
>From: "Marcel Balcarek" <ma*************@REM-OVEMEtoxicall.com>
>Subject: Object persistence
>Date: Thu, 15 Apr 2004 10:34:00 -0600
>Lines: 11
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <u7**************@TK2MSFTNGP11.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: c-67-165-238-210.client.comcast.net 67.165.238.210
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
>Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.framework.aspnet:225884 >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>Hello,
>
>I have a page (page1.aspx) that builds some complex .NET objects.
>I successfully pass these objects to another different window(page2.aspx). >How can I persist these objects on a POST back of the same window
>(page2.aspx)?
>
>Thank you
>Marcel
>
>
>



Nov 18 '05 #5

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

Similar topics

6
by: Paolo Losi | last post by:
Hi all, I'm pretty new to the python language so please excuse me if this is FAQ... I'm very glad to be part of the list! :-) I'm looking into a way to implement a generic workflow framework...
4
by: Marcel Balcarek | last post by:
Hello, I have a page (page1.aspx) that builds some complex .NET objects. I successfully pass these objects to another different window (page2.aspx). How can I persist these objects on a POST...
3
by: Jo Inferis | last post by:
So, I'm using a 3rd party com object via interop (already I can hear screams of anguish). This object was originally written to be used as the backend for multiple screens of a VB application. Now...
5
by: Chris Spencer | last post by:
Before I get too carried away with something that's probably unnecessary, please allow me to throw around some ideas. I've been looking for a method of transparent, scalable, and human-readable...
3
by: Robert | last post by:
I am trying to persist an instance specific object without using a session object. Is this possible? For example: Class object: Car Properties: Make, Model Car.Make = Ford Car.Model = F150
6
by: Peter Richardson | last post by:
Hi, I'm wondering if someone can help me with some design questions I have. I'm trying to create a class in C# to represent my customers. I know how to create teh Customer class and all, but my...
1
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that...
0
by: Bill McCormick | last post by:
I'm looking for the best (easiest, cheapest, fastest, most flexible) way to implement object persistence in .NET 3.5. The object data is native XML, so serialization is a good option as well as...
0
myusernotyours
by: myusernotyours | last post by:
Hi all, Am trying to create a Java Desktop App that uses Java Persistence in Netbeans. The database is MS Access but I tried with Mysql and got the same error. When I run the app( Create the...
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:
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.