By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,905 Members | 1,654 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,905 IT Pros & Developers. It's quick & easy.

Object persistence

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.