Re: Page context

From: John Saunders (johnwsaundersiii_at_notcoldmail.com)
Date: 07/13/04


Date: Tue, 13 Jul 2004 12:52:50 -0400


"Larry Charlton" <LarryCharlton@discussions.microsoft.com> wrote in message
news:72606C90-B314-4091-9C51-5E4665E11F83@microsoft.com...
> My problem is simpler and harder than that. The "if you ran the search in
a second window..." is correct. Basically what I want to track is one piece
of information. A number would work. I have to put that number on the page
(in the form). When I leave the page for another, that second page needs to
know what the number is. When it returns to the first page that number
needs to get passed back so it can get it's context. The number can't be in
the URL, or if it is, has to be removed immediately.
>
> Consider pressing Control+N, I have two different contexts that need to be
returned to. Something like the following:
> search(5) -> Control+N -> search(6)
> Now I have two searches with different contexts and the following might
happen:
> search(5) -> Edit(7) -> search(5)
> search(6) -> Edit(8) -> search(6)
>
> What I'm trying to figure out is how to get 5 from search to edit and then
back again. If I put 5 in the URL, when I press Control+N I get 2 5's.
>
> Also consider a web farm. If I use session, I'm going to have to move
storage off to another server and slow every page down for that server.

Ok. If you need to associate something with a particular browser window,
then you're pretty much stuck using either the URL or a form field. You may
use a hidden form field. You can also use Server.Transfer to transfer
between the search and Edit pages. The Edit page may use the Context.Handler
property to get access to the members of the search page. This would include
the saved number.

I could give you more detail and maybe a sample, but I need to know when the
number is determined, and whether it depends on the search criteria the user
enters on the search page.

-- 
John Saunders
johnwsaundersiii at hotmail
> "John Saunders" wrote:
>
> > "Jerry Pisk" <jerryiii@hotmail.com> wrote in message
> > news:OMjpJIGaEHA.3112@TK2MSFTNGP09.phx.gbl...
> > > Or not, if you ran another search in a second window on the same
session.
> >
> > If the goal is to keep the "latest search", then this is exactly what
you
> > would want.
> > -- 
> > John Saunders
> > johnwsaundersiii at hotmail
> >
> >
> > > "John Saunders" <johnwsaundersiii@notcoldmail.com> wrote in message
> > > news:eKs6hb3ZEHA.808@tk2msftngp13.phx.gbl...
> > > > "Larry Charlton" <LarryCharlton@discussions.microsoft.com> wrote in
> > > > message
> > > > news:F1D1C9CB-C332-48E4-B6B0-DC903EDB7761@microsoft.com...
> > > >> I want to maintain page context between pages.
> > > >>
> > > >> Search -> Edit -> back to Search w/last search there and some
variants
> > > >>
> > > >> The thing is I also want people to be able to hit Control+N for a
new
> > > > window and get a new search.  I'd also like to be able to use the
foward
> > > > and
> > > > backward navigation.  So far I've been able to do the following:
> > > >> I can create a function key, pass it on the URL, pick up the values
> > from
> > > > the url, send a form back that auto submits with the URL rewritten
and
> > > > context on the form or a variant of this.  This has the side effect
of
> > no
> > > > navigation...
> > > >> or
> > > >> I can create a function key, pass it on the URL, pick up the values
> > from
> > > > the url and use those.  This has the side effect of if I hit
control+N
> > the
> > > > new window is using the current windows context.  Which can be
really
> > bad
> > > > in
> > > > some cases...
> > > >>
> > > >> Both to work to a point.  Is there a .net way to do this?  I seem
to be
> > a
> > > > bit thick headed this morning.
> > > >
> > > > You can save the search criteria in Session variables. They will
still
> > be
> > > > there when you get back to the Search page.
> > > > -- 
> > > > John Saunders
> > > > johnwsaundersiii at hotmail
> > > >
> > > >
> > >
> > >
> >
> >
> >


Relevant Pages

  • Re: PS: auto-format all form fields
    ... you should use the Edit> Replace ... in the next dialog, select your Form Field ... you can automate the insert-and-format procedure ... Set oRg = Selection.Range ...
    (microsoft.public.word.docmanagement)
  • Re: forms - editing within a form field
    ... paragraph is highlighted, making it hard to click your ... curser on one word within this paragraph to edit. ... I'm having trouble recognizing what you mean with "abc on the toolbar". ... Could you describe in a bit more detail where/how this form field is inserted ...
    (microsoft.public.word.docmanagement)
  • Re: [PHP] newbie stuck again
    ... PAUL FERRIE wrote: ... >information to the database. ... form field dont fill with all the data senback from the db to be edited, ... >select the table we wish to view and edit. ...
    (php.general)
  • Re: Text Form Field Too Small
    ... By default it creates the Text Form Field about the width ... If I click slightly to the right of that field it tries to tab to ... rest of the area is now uneditable whitespace. ... When they edit this field it will either shrink the field down ...
    (microsoft.public.word.docmanagement)
  • Re: Page context
    ... I have two different contexts that need to be returned to. ... If I use session, I'm going to have to move storage off to another server and slow every page down for that server. ... "John Saunders" wrote: ...
    (microsoft.public.dotnet.framework)