I'm not exactly sure what you mean by "into the params". Do you mean
Request.Params (which combines querystring and forms elements)?
A lot of this really depends how the user is going to progress from one page
to the next - clicking a hyperlink (anchor as you called it), or posting a
form, or through something you do such as Server.Transfer or
Response.Redirect. You also have Cross-Page postbacks in ASP.NET 2.0 where
you can get a reference to the PreviousPage property of the Page class and
access your hidden field (if it is runat=server) from there.
Then you can add items to the querystring with javascript. So we may be
talking about a fairly complicated multi-faceted issue here.
It might be possible that you could just set a session variable and
increment it as each new page is reached, then check its value on the "next
page".
Peter
--
Recursion: see Recursion
site:
http://www.eggheadcafe.com
unBlog:
http://petesbloggerama.blogspot.com
BlogMetaFinder:
http://www.blogmetafinder.com
"to*********@gmail.com" wrote:
I'm trying to keep pages in sequence to make sure sessions don't
overlap if a user has 2 browsers running at the same time. The hitch
I'm coming across is when they change pages, either through post back
or an anchor.
I set up a HiddenField and check it when I enter and increment it when
I leave.
How could I go about injecting that field's value into the params when
I leave the page?