473,385 Members | 1,375 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Determine name /path of calling page

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.
Nov 18 '05 #1
5 2334
look at the ServerVariables collection.
HTTP_REFERER (spelling?)
--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"mg" <mg@theworld.com> wrote in message
news:07****************************@phx.gbl...
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.

Nov 18 '05 #2
Hi,

Use
Request.UrlReferrer.ToString() in C#

RequestServerVariables("HTTP_REFERER") in ASP

Hope this would help

Thnaks

Nakul

"mg" <mg@theworld.com> wrote in message
news:07****************************@phx.gbl...
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.

Nov 18 '05 #3

"mg" <mg@theworld.com> wrote in message
news:07****************************@phx.gbl...
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
Nov 18 '05 #4
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].
-----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.
.

Nov 18 '05 #5
if the cookie isn't set from this site then it's inaccessable.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"mg" <mg@theworld.com> wrote in message
news:04****************************@phx.gbl...
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.
.

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Kamus of Kadizhar | last post by:
Thanks to everyone on this list. I now have a functioning piece of python code!! :-)) Now I'm trying to clean it up. I have the same (or similar) lines repeated several times: ...
8
by: Glenn A. Harlan | last post by:
Why am I receiving the below error when calling - Path.GetTempFileName() The directory name is invalid. Description: An unhandled exception occurred during the execution of the current web...
2
by: Giovane Calabrese | last post by:
( aspx + vb ) hi everyone ! I really need make that function work ! im brazilian , and i want to make a multilanguage system , that function above must look at all ASPX take the labels ID and...
3
by: mnet123 | last post by:
I am using "Server.Transfer()" to send data to an ASP.NET page that's sole purpose is to display messages. I am using "Server.Transfer since I can set the contents of the message I want to display...
3
by: KSC | last post by:
Hello, Is there a way to programmatically determine if a directory is shared and if so, what the sharename is? It seems a simple question, but I have been searching and not found the...
3
by: Developer in California | last post by:
I am working on developing a generic Web framework using Master Pages in ASP.NET 2.0. What I have done is created a PageRenderer class which has a public method which will retrieve the path of the...
1
by: Larry Rebich | last post by:
Is there an Asp.Net equilvant of VB6's Me.Name? And hopefully it will contain the path of the page. What I want to do is use the name as the return page from a called page. I'd like to write...
1
by: topramen | last post by:
does any one here know of a good way to to determine whether or not a given path is a directory (e.g., "c:\mydir") or a file (e.g., "c:\mydir \myfile.txt")? i started attacking this problem by...
3
by: Tod Birdsall | last post by:
Hi, My boss has asked me to create a tool that can give us a list of stored procedure names that are being called from each of our app's web pages. This is an ASP.NET application that is rather...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.