Re: [C#] check I come from ...
Christopher Frazier <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <[email protected]> |
Use Session["lastViewedPage"] or something like that. Just set it to the
current page in the PreRender event, and check for the correct one in Load.
--
-Christopher
| AspInsider
http://chrisfrazier.net/blog
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.
-----Original Message-----
From: Discussion of building .NET applications targeted for the Web
[mailto:[email protected]] On Behalf Of Robert Taylor
Sent: Thursday, May 10, 2007 7:02 AM
To: [email protected]
Subject: Re: [DOTNET-WEB] [C#] check I come from ...
Just another idea, you could keep track of
some values that are generated every 'x'
minutes. Then pass the current value in
the query string from page 'A'. When the
user hits page 'B', test to see if the value
is a valid value. Also, have the values
expire (or just remove them from your valid
list). I don't know your application, so I
don't know how long your users are spending
on page 'A'.
Hope this Helps,
Robert L. Taylor
> Date: Thu, 10 May 2007 13:22:58 +0200> From: [email protected]>
Subject: [DOTNET-WEB] [C#] check I come from ...> To:
[email protected]> > Hello,> > In an ASP.NET 2.0 application, I
have 3 pages :> - a.spx> - b.aspx> - c.aspx> > I'd like check when I load
b.aspx than I come from a.aspx, if not redirect> to another page, how can I
do that ?> > Regards,> > ===================================> This list is
hosted by DevelopMentorR http://www.develop.com> > View archives and manage
your subscription(s) at http://discuss.develop.com
_________________________________________________________________
Change is good. See what's different about Windows Live Hotmail.
www.windowslive-hotmail.com/learnmore/default.html?locale=en-us&ocid=TXT_TAG
LM_HMWL_reten_changegood_0507
===================================
This list is hosted by DevelopMentorR http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com