Ask a Question related to ASP.NET General, Design and Development.
-
Atif Jalal #1
object persistence
I instatiate an object first time when an asp.net page loads. But when
the page reloads after Post Back, I get an error saying the object
does not exist. What do I need too do to make object persistant on
server?
Help appreciated.
Atif Jalal Guest
-
Which perl module to use for object persistence
folks, in our project we are planning to persistently store some objects. any recommendations for which modules to use? anybody used:... -
Persistence
Hi, I have a datagrid with a checkbox column. The datagrid is using paging and sorting. When I click on a checkbox then go to page 2 (or any... -
help for properties persistence
Hi. I'm developing a WebControl that uses the following custom attributes: I'm using ParseChildren(false), because i've got two collection... -
ExtenderProvider object code persistence
I using his DefaultButtons control and having the exact same problem. I want to set default buttons for run-time generated conrols but when I try to... -
Collection Persistence
All, I'm sorry for asking this cause I know it has been asked a thousand times before, but I don't seem to be able to find a complete solution... -
Steve C. Orr, MCSD #2
Re: object persistence
Try putting the object into Session State or ViewState.
Sesssion("MyObject") = oMyObject
Then on postback:
oMyObject = CType(Session("MyObject"),cMyObject)
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
Developer for Hire
"Atif Jalal" <matif@hotmail.com> wrote in message
news:b7af12d4.0308120905.51c736bd@posting.google.c om...> I instatiate an object first time when an asp.net page loads. But when
> the page reloads after Post Back, I get an error saying the object
> does not exist. What do I need too do to make object persistant on
> server?
>
> Help appreciated.
Steve C. Orr, MCSD Guest
-
Kevin Spencer #3
Re: object persistence
Every time the Page reloads, all objects in it must be rebuilt from scratch.
Either, as Steve suggested, persist the object in some caching mechanism, or
re-create the object with each PostBack.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Complex things are made up of
lots of simple things.
"Atif Jalal" <matif@hotmail.com> wrote in message
news:b7af12d4.0308120905.51c736bd@posting.google.c om...> I instatiate an object first time when an asp.net page loads. But when
> the page reloads after Post Back, I get an error saying the object
> does not exist. What do I need too do to make object persistant on
> server?
>
> Help appreciated.
Kevin Spencer Guest



Reply With Quote

