|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to I know the previous page is clicked to forward the current page?How to I know the previous page is clicked to forward the current page?
As our web site have many methods to enter the web page, I need to know the users clicked which link or which part of page to enter the web page. Dear ABC:
You may use a Session variable to store whether the user visits the previous page or not. For example Set: ->> Session("Page1visited") = "True" 'on the previous page Get: -->> If Session("Page1visited") = "True" 'on the current page 'From prev else 'From other page end if Sincerely, Joe Tsui -MCSD.NET,MCAD.NET,MCDBA,MCP Show quoteHide quote "ABC" wrote: > How to I know the previous page is clicked to forward the current page? > > > > As our web site have many methods to enter the web page, I need to know the > users clicked which link or which part of page to enter the web page. > > > > I for example usualy use a stack variable & save it on a session to call &
update from all the pages in this case a stack variale can be usefull because is something like a list of object, you can build a custom object ( for example a struct ) to put all the information that you need (for ex page name, userID,page status & more ) for shure this method is helpfull if you need to keep not only the name of page, if you only need tha page of the name Michel Posseth show you the better method bye Maurizio Show quoteHide quote "Joe" <J**@discussions.microsoft.com> ha scritto nel messaggio news:BF852368-0003-49D4-9982-B0195B8CEAB5@microsoft.com... > Dear ABC: > You may use a Session variable to store whether the user visits the > previous > page or not. > For example > Set: ->> Session("Page1visited") = "True" 'on the previous > page > Get: -->> If Session("Page1visited") = "True" 'on the current page > 'From prev > else > 'From other page > end if > > > Sincerely, > Joe Tsui > -MCSD.NET,MCAD.NET,MCDBA,MCP > > > "ABC" wrote: > >> How to I know the previous page is clicked to forward the current page? >> >> >> >> As our web site have many methods to enter the web page, I need to know >> the >> users clicked which link or which part of page to enter the web page. >> >> >> >>
Other interesting topics
Is this static method threadsafe?
Advantages of Static Vs Instance methods? Compiler Error: [No relevant source lines] output cache question PLS HELP: Simple adding data to db in ASP.NET 2.0 CompareValidator for dates > than today Prerender changes get lost after Page.RenderControl VWD 2005 Express: "copy web site" creates multiple publishform (2.0) Trap the Maximum request length How to I know the previous page is clicked to forward the current page? |
|||||||||||||||||||||||