Re: State managment

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Vik (viktorum_at_==hotmail.com==)
Date: 02/03/04


Date: Tue, 3 Feb 2004 16:25:57 -0500

Thank you.

I already tried assigning PageID = Now. This works if a user opens the new
window before the page is posted back. After the page is posted back opening
the new window does not call Page_Load procedure, so PageID remains the same
as on the first page.

Vik

"Marina" <someone@nospam.com> wrote in message
news:%23junKTp6DHA.1040@TK2MSFTNGP10.phx.gbl...
> If these are your requirements, then yes. At any one time, you should
only
> retrieve the records you need though. So if you are display 10 at a time,
> grab 1-10 the first time, when they hit Next, grab the next 10.
>
> The other way you could do it, is to assign each page a new GUID on the
> first page_load and store the GUID in viewstate. Then, if your session
> variable name is "SearchResults", name it : GUID + "SearchResults". That
> way there will be unique session variables for each page, since each one
> will have a unique guid that it has created at start up. This works if
you
> don't mind having multiple sets of data in session at the same time.
>
> "Vik" <viktorum@==hotmail.com==> wrote in message
> news:uxQ736o6DHA.2404@TK2MSFTNGP11.phx.gbl...
> > A Web page contains a search function, which fills out a dataset and
> stores
> > it in a Session state. A user can navigate through the stored records.
If
> > the user opens a new browser window from the existing one and enters
> another
> > search criteria, then the new dataset overrides the dataset from the
> > previous window in the session state and both windows display the same
> > results though the search criteria look different.
> > When the dataset is stored in a view state loading the page takes
forever.
> >
> > How can I solve this problem? Should I retrieve data from a database
every
> > time the page is loaded?
> >
> > Thanks.
> >
> >
>
>



Relevant Pages

  • Re: Managing state
    ... moment a user opens more than one window. ... is not well documented and is not standard HTTP. ... this can be used to split an existing session. ...
    (comp.lang.php)
  • RE: How to create a local server (i.e., localhost)
    ... logon user session and hard to automate in a non-interactive service ... Since the webserver.exe is a winform application which has a main window, ... already running on a given port? ...
    (microsoft.public.dotnet.languages.vb)
  • RE: automatic logoff - two scenarios
    ... in order to prevent losing established remote desktop connections or e-mail ... continue the session with a pop-up Yes/No window. ... If the user does not respond after one minute, the pop-up window will ...
    (microsoft.public.windows.server.sbs)
  • Re: cookie not sent with window.open
    ... through the web-server then the browser would not pass the session cookie to ... >> - the user clicks this hyperlink, which opens a new Internet Explorer ... >> open a new window calling useCookie.asp ...
    (microsoft.public.inetserver.asp.general)
  • Re: Concurrent session issues. Currently our website can have only one window open. Help me solve th
    ... Maybe I'm abusing the use of $_SESSION but I have data entry processes ... way I know that this would be possible (uses arrays in arrays). ... I were to open up a window and start the data entry it would overwrite ... each 'step1', then no matter how many windows they have open, each one ...
    (comp.lang.php)