473,395 Members | 1,404 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,395 software developers and data experts.

Request.UrlReferrer with IIS redirection ???

I created two iss folder under my aspx project and I redirected each
one of them to same aspx page by IIS that is test.aspx. on the page
load of test.aspx I have to catch where the request come in! (what is
the previous link or reqest)
I try to use Httpcontex.Current.Request.UrlReferrer.AbsoluteUri but
it returns null

how can I solve this problem?
any ideas ???
-myaspxProject
-x folder * Redirect to myaspxProject/test.aspx *
-y folder * Redirect to myaspxProject/test.aspx *
-test.aspx
Nov 18 '05 #1
3 3304
pmb
Try using Page.Request.UrlReferrer property instead.

On 10 Jun 2004 05:11:29 -0700, oz*********@yahoo.com (Oney) wrote:
I created two iss folder under my aspx project and I redirected each
one of them to same aspx page by IIS that is test.aspx. on the page
load of test.aspx I have to catch where the request come in! (what is
the previous link or reqest)
I try to use Httpcontex.Current.Request.UrlReferrer.AbsoluteUri but
it returns null

how can I solve this problem?
any ideas ???
-myaspxProject
-x folder * Redirect to myaspxProject/test.aspx *
-y folder * Redirect to myaspxProject/test.aspx *
-test.aspx


Nov 18 '05 #2
this is a bad approach as some proxies/firewalls strip the refer header from
all requests.

-- bruce (sqlwork.com)
"Oney" <oz*********@yahoo.com> wrote in message
news:cc*************************@posting.google.co m...
I created two iss folder under my aspx project and I redirected each
one of them to same aspx page by IIS that is test.aspx. on the page
load of test.aspx I have to catch where the request come in! (what is
the previous link or reqest)
I try to use Httpcontex.Current.Request.UrlReferrer.AbsoluteUri but
it returns null

how can I solve this problem?
any ideas ???
-myaspxProject
-x folder * Redirect to myaspxProject/test.aspx *
-y folder * Redirect to myaspxProject/test.aspx *
-test.aspx

Nov 18 '05 #3
Just an uneducated guess, but is it possible that the referrer is coming
back as null because IIS is redirecting them from those directories, as
opposed to maybe a default page within those folders performing a
Response.Redirect or something? Just a thought, probably wrong. ;)

-John

"Oney" <oz*********@yahoo.com> wrote in message
news:cc*************************@posting.google.co m...
I created two iss folder under my aspx project and I redirected each
one of them to same aspx page by IIS that is test.aspx. on the page
load of test.aspx I have to catch where the request come in! (what is
the previous link or reqest)
I try to use Httpcontex.Current.Request.UrlReferrer.AbsoluteUri but
it returns null

how can I solve this problem?
any ideas ???
-myaspxProject
-x folder * Redirect to myaspxProject/test.aspx *
-y folder * Redirect to myaspxProject/test.aspx *
-test.aspx

Nov 18 '05 #4

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

Similar topics

1
by: | last post by:
I've got \\root\folder\Page2.aspx that I want to controll access to, by establishing a rule that says "previous URL must be '\\root\folder\Page1.aspx' (which did password validation). The code...
7
by: Ivan Demkovitch | last post by:
Hi! Here is what I'm doing: I have Login.aspx with code to do forms authentification and I have this line at the end: Response.Redirect(Request.UrlReferrer.ToString()); I have other...
7
by: Aaron Prohaska | last post by:
Has anyone had any experience with Nortan Antivirus causing problems when trying to use Request.UrlReferrer? I am seeing in the Nortan Antivirus log that its blocking my page from loading because...
6
by: saden_paki | last post by:
I am having this problem, that Request.UrlReferrer comes out to be Nothing, when a user hits a button on a html page which only have this button, on this button's onClick javascript event I have...
2
by: ad | last post by:
I have tree web page A.ASPX, B.ASPX and CheckPW.aspx There is a button in A.ASPX, the click of that button is redirect to B.ASPX .. I write a Page_Load event in b.aspx, if the Session is null...
0
by: Tony | last post by:
I'm trying to capture referrer information. the requests are the first lines of code in the page load sub. Request.UrlReferrer.tostring 'produces the name on of my site not the referrer...
2
by: deepak.bhardwaj | last post by:
Hi, I have implemented the IHttpHandler interface for generating images and writing them to response stream in binary format. I use an IHttpHandlerFactory to instantiate that handler. A .aspx...
0
AmirGhaffary
by: AmirGhaffary | last post by:
want to insert user Url into data base I work with ASP.NET and i used this code in Session_Start at Global.asax Dim Ref As String If Not Request.UrlReferrer Is Nothing Then ...
0
by: Michael Nemtsev [MVP] | last post by:
Hi, Does anybody have site under NLB Service? I wonder what Request.UrlReferrer returns in this case? I'm asking because today found that when clients put site under NLB all postbacks comes...
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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.