Determine name /path of calling page

  • Thread starter Thread starter mg
  • Start date Start date
M

mg

Is there a simple way to determine [using C# or
javascript] the name & path of the Web page that calls a
WebForm [aspx] when the calling page is another type such
as an html, jsp, or .do file.
 
Hi,

Use
Request.UrlReferrer.ToString() in C#

RequestServerVariables("HTTP_REFERER") in ASP

Hope this would help

Thnaks

Nakul
 
mg said:
Is there a simple way to determine [using C# or
javascript] the name & path of the Web page that calls a
WebForm [aspx] when the calling page is another type such
as an html, jsp, or .do file.


Request.UrlReferrer

"Gets information about the URL of the client's previous request that linked
to the current URL"

It returns a "Uri"


Hans Kesting
 
Is there a way to determine from within a WebForm [using
C# or javascript] the name and path of the Web page that
sets a cookie with a particular name and then calls the
WebForm [aspx].
 
if the cookie isn't set from this site then it's inaccessable.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com


mg said:
Is there a way to determine from within a WebForm [using
C# or javascript] the name and path of the Web page that
sets a cookie with a particular name and then calls the
WebForm [aspx].
-----Original Message-----
Is there a simple way to determine [using C# or
javascript] the name & path of the Web page that calls a
WebForm [aspx] when the calling page is another type such
as an html, jsp, or .do file.
.
 
Back
Top