Re: "Page" class and utility class
From: Diffident (Diffident_at_discussions.microsoft.com)
Date: 01/11/05
- Next message: Brad Roberts: "RE: ASP .Net connection to Sql Server"
- Previous message: Teemu Keiski: "Re: ASP.NET WP memory consumption problem & debugging on AppDomain bas"
- In reply to: Curt_C [MVP]: "Re: "Page" class and utility class"
- Next in thread: Curt_C [MVP]: "Re: "Page" class and utility class"
- Reply: Curt_C [MVP]: "Re: "Page" class and utility class"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 Jan 2005 09:55:04 -0800
Does your reply mean that the utility class's object is also destroyed in the
Page's Unload method?
"Curt_C [MVP]" wrote:
> You can persist through app variables, to some extent. Beyond that use a
> DB/File/etc to persist data.
>
> --
> Curt Christianson
> Site & Scripts: http://www.Darkfalz.com
> Blog: http://blog.Darkfalz.com
>
>
> "Diffident" <Diffident@discussions.microsoft.com> wrote in message
> news:B66DAA58-1413-4D30-A815-EF814ACFDFFC@microsoft.com...
> > Hello All,
> >
> > I have written a webform which is by default derived from "Page" class. I
> > have coded another utility class with few methods and an object of this
> > class
> > is instantiated from the webfom class.
> >
> > Methods inside the utility class set few global variables which act as
> > mediums of persistence to hold data. Now my question is all works fine
> > during
> > my initial request and all the global variables are set correctly, but
> > during
> > later requests I doubt that global variables are holding null references.
> > Can
> > anyone give me a suitable explanation on this?
> >
> > I know that Page class is completely destroyed in the "Unload" method of
> > the
> > lifecycle but how about the utility class? Would it even be destroyed
> > along
> > with the webform class?
> >
> > Thanks for your pointers!!
>
>
>
- Next message: Brad Roberts: "RE: ASP .Net connection to Sql Server"
- Previous message: Teemu Keiski: "Re: ASP.NET WP memory consumption problem & debugging on AppDomain bas"
- In reply to: Curt_C [MVP]: "Re: "Page" class and utility class"
- Next in thread: Curt_C [MVP]: "Re: "Page" class and utility class"
- Reply: Curt_C [MVP]: "Re: "Page" class and utility class"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|