Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Help with persistance

Reply
Thread Tools

Help with persistance

 
 
CCORDON
Guest
Posts: n/a
 
      12-28-2004
I have some classes that contain my objects...say..... Client...with all his
properties, Methods & Events. I use this on my web pages like this.


Dim MyClient as New Client(IdCorporation)

This because I need the information of that client as a reference.

Then I use:

If not page.IsPostBack then

Dim MyOtherClient as New Client ()
This is created just to use a function from that class:
MyOtherClient.Add (Name, Address, City, Zip, Phone)

Endif

The problem is that when a postback occurs...MyOtherClient = MyClient.

How should this be handled?

Thanks


 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      12-29-2004
Hi cc:

I'm afraid you'll have to give a better description of the problem. Is
there an incorrect result? An error message? Where did the instance
MyOtherClient come from?

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 28 Dec 2004 17:08:28 -0600, "CCORDON" <(E-Mail Removed)>
wrote:

>I have some classes that contain my objects...say..... Client...with all his
>properties, Methods & Events. I use this on my web pages like this.
>
>
>Dim MyClient as New Client(IdCorporation)
>
>This because I need the information of that client as a reference.
>
>Then I use:
>
>If not page.IsPostBack then
>
>Dim MyOtherClient as New Client ()
>This is created just to use a function from that class:
>MyOtherClient.Add (Name, Address, City, Zip, Phone)
>
>Endif
>
>The problem is that when a postback occurs...MyOtherClient = MyClient.
>
>How should this be handled?
>
>Thanks
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Persistance,Persistance,Persistance MHPNW STAFF Windows 64bit 5 05-24-2005 09:29 PM
dataset and dataadapter persistance between page loads Amadelle ASP .Net 1 06-05-2004 02:47 AM
WebControl Problem - Persistance? (Cross-Post) Lucas, Todd ASP .Net 0 05-08-2004 12:20 PM
About persistance of WebForm class in ASP.NET Free ASP .Net 2 10-20-2003 07:19 PM
collection of Objects persistance Atif Jalal ASP .Net 0 08-13-2003 02:58 PM



Advertisments