Re: User control remember state across pages without session



Well, the control state isn't "global", is it. It depends on the client, or
session of that client to be precise. What's your objection to using session
state to store the state of the session?


"McGeeky" <anon@xxxxxxxx> wrote in message
news:OzkY91k1FHA.1256@xxxxxxxxxxxxxxxxxxxxxxx
> No. It could be different for each client
>
> --
> McGeeky
> http://mcgeeky.blogspot.com
>
>
> "KMA" <kma@xxxxxxxx> wrote in message
news:djatq6$igr$1@xxxxxxxxxxxxxxxxxxxx
> > should the state of the UC be the same for all clients?
> >
> > "McGeeky" <anon@xxxxxxxx> wrote in message
> > news:uhVVbRk1FHA.3564@xxxxxxxxxxxxxxxxxxxxxxx
> >> Is there a way to get a user control to remember its state across
pages?
> >> I
> >> have a standard page layout I use with a header and footer as user
> > controls.
> >> Each page uses the same layout by means of copy paste (I hear this will
> >> improve in ASP.Net 2 via master pages).
> >>
> >> When I navigate from one page to the next the header and footer user
> >> controls lose their state because they are effectively different
> >> instances
> >> of the user control.
> >>
> >> Is there any way I can make the state of the user control exist between
> >> pages?
> >>
> >> Preferably without the use of hand coding the storing of data in the
> > session
> >> or passing parameters to the user control on each page that includes
it.
> > Is
> >> there a way of making the user control state "global"?
> >>
> >> Thanks!
> >>
> >> --
> >> McGeeky
> >> http://mcgeeky.blogspot.com
> >>
> >>
> >>
> >
> >
>
>


.



Relevant Pages

  • Session("MyName") not working
    ... I am trying to store an object in the Session() ... I have a VB.Net control which is loaded in an asp page and then calls ... Can anyone tell my what I need for the client side? ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: ASPNET to work on Citrix
    ... The Citrix control is a client side ActiveX control? ... all my form was coded as user control and loaded as component to ...
    (microsoft.public.dotnet.framework.aspnet)
  • Client printers
    ... When my client wants to printer to a local printer from a ... TS session, he see all other TS user's printer. ... disable / control that. ...
    (microsoft.public.win2000.termserv.clients)
  • Re: Retrieving Session in a User Control
    ... Please show us the line of code that is causing the error message and give ... > I have a nested user control i.e., Control B which is loaded from Control ... a session variable is being retrieved. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Passing byte[][] from C# asp code-behind to client-side j<ava>scri
    ... send special URL to client; ... from C# control download special URL and decode in byte. ... user control, by passing that byteto the user ctrl. ...
    (microsoft.public.scripting.jscript)

Loading