473,569 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1576
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.c om>
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.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: c-67-165-238-210.client.comc ast.net 67.165.238.210
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2258 84
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******@onlin e.microsoft.com > wrote in message
news:Jp******** ******@cpmsftng xa06.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.c om>
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.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: c-67-165-238-210.client.comc ast.net 67.165.238.210
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2258 84X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.co m>
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.publi c.dotnet.framew ork.aspnet
NNTP-Posting-Host: 168-103-77-32.dnvr.qwest.n et 168.103.77.32
Path: cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP0 9
.phx.gblXref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2272 15
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******@onlin e.microsoft.com > wrote in message
news:Jp******* *******@cpmsftn gxa06.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.c om>
>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.publi c.dotnet.framew ork.aspnet
>NNTP-Posting-Host: c-67-165-238-210.client.comc ast.net 67.165.238.210
>Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP11.phx.g bl
>Xref: cpmsftngxa06.ph x.gblmicrosoft.publ ic.dotnet.frame work.aspnet:225 884 >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
4171
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 with python. The basic idea is to use python scripts as the way to specify workflow behavior. The framework should not only use scripts as a...
4
248
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 back of the same window (page2.aspx)? Thank you Marcel
3
296
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 in this situation the object remains in memory the whole time, so persistence of data between screens is not a problem, but on the web I'm assuming...
5
1494
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 object persistence, and I've tried the standard lib's Shelve, Zope's ZODB, Divmod's Axiom, and others. However, while they're all useful, none...
3
1663
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
1422
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 problem comes with some conceptual issues I have: Let's say I have a business layer and a data layer. I use a seperate assembly to host the...
1
7088
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 someone who bothers to read all of it have some pointers. Note, I have posted the stack trace and the code exhibiting the problem further down...
0
1577
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 SQL Server. In memory objects will have a state modifier that indicates some sort of progress on the object. In a file-system persistence...
0
2381
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 entity manager), I keep getting the following... Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence...
0
7697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.