Determine name /path of calling page

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.
 
N

Nakul

Hi,

Use
Request.UrlReferrer.ToString() in C#

RequestServerVariables("HTTP_REFERER") in ASP

Hope this would help

Thnaks

Nakul
 
H

Hans Kesting

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
 
M

mg

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].
 
C

Curt_C [MVP]

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.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top