473,394 Members | 2,031 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,394 software developers and data experts.

Browser refresh forgets the original request

The problem is in the result page in which i can scroll throughthe contents of the result set 100 at a time. I call the resultpage from a filter page where i accept filter on results to bedisplayed. When i get to the result page by submitting (on clickof a button) from within the filter page or result page theserver understands the calling page using Request.UrlReferrerproerty. When I refresh the page using browser Refresh button,UrlReferrer property forgets who is the calling page. It iseither null or gives the url of the containing page. The filterand result page are contained within a parent page. Parent pagecontains two Iframes (one to display application header andother to display the content section).

Do anyone have an idea of what is happening to UrlReferrerproperty? Is there a way in which i can make the webserverremember the url calling sequence?

Thanks

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>Z9mpnJROzkiz7BqYCChHXA==</Id>
Nov 19 '05 #1
2 2198

Jaikanth Sithambaranathan via .NET 247 wrote:
When i get to the result page by submitting (on click of a button) from within the filter page or result page the server understands the calling page using Request.UrlReferrer proerty. When I refresh the page using browser Refresh button, UrlReferrer property forgets who is the calling page.
Do anyone have an idea of what is happening to UrlReferrer property?


Sounds like you already answered your question. UrlReferrer gets
populated with the page you were on when you requested the page you're
currently rendering. On your initial request, that would be the page
you came from. When you then refresh the page, UrlReferrer is
correctly telling you that you are standing on yourpage.aspx, and
asking to display yourpage.aspx.

If you want to keep the original Referrer value alive, you'll need to
store it somewhere. Sessions come to mind as a mechanism that would
work, but really, you should look to fix the architecture issues that
got you to this point.

Good luck!
Jason
http://www.expatsoftware.com/

Nov 19 '05 #2
you should avoid use of UrlReferrer as many proxy server will strip it from
the request.

-- bruce (sqlwork.com)
"Jaikanth Sithambaranathan via .NET 247" <an*******@dotnet247.com> wrote in
message news:Og**************@TK2MSFTNGP14.phx.gbl...
The problem is in the result page in which i can scroll through the contents
of the result set 100 at a time. I call the result page from a filter page
where i accept filter on results to be displayed. When i get to the result
page by submitting (on click of a button) from within the filter page or
result page the server understands the calling page using
Request.UrlReferrer proerty. When I refresh the page using browser Refresh
button, UrlReferrer property forgets who is the calling page. It is either
null or gives the url of the containing page. The filter and result page are
contained within a parent page. Parent page contains two Iframes (one to
display application header and other to display the content section).

Do anyone have an idea of what is happening to UrlReferrer property? Is
there a way in which i can make the webserver remember the url calling
sequence?

Thanks

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>Z9mpnJROzkiz7BqYCChHXA==</Id>
Nov 19 '05 #3

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

Similar topics

4
by: vickie_raven | last post by:
is there any way to force a refresh of a page that a user visits?? sorry i am still learning. vickie
2
by: Alphonse Giambrone | last post by:
I am relatively new to ASP.NET and just got my bound datagrid utilizing a typed dataset to work the way I want to add, delete and update data. The problem I am running into now is when clicking...
1
by: JBD | last post by:
Hi, I have a button that fires the below sub routine. This works fine if the user clicks the button as they are supposed to, even if they click it repeatedly. However, if you click "refresh" on...
3
by: Rob | last post by:
Each time a webform is posted back (submitted), another URL is added to the browser's history list. My web application allows a back button to return to previously visited pages, but I do not wish...
9
by: SHarris | last post by:
Hello, In our new intranet ASP.NET project, two requirements are that the browser accept cookies AND JavaScript. We are requiring the use of Internet Explorer 6+. 1. Using C# in an ASP.NET...
17
by: Jim Little | last post by:
Hello, I'm driving myself crazy either because I'm missing something about ASP.NET, or what I'm trying to do simply can't be done. First, I am not using session variables to track state. My...
1
by: Dabbler | last post by:
What effect does the browser refresh button have on a) session variables and b) viewstate? My page loads info based on session variables and it seems this breaks when someone does a page...
15
by: tshad | last post by:
I was looking for a way to handle refreshes (user pressed refresh button) and found a piece of code to check if a Web page was refreshed but I can't get it to work. The code is:...
7
by: Nathan Sokalski | last post by:
I want to make sure I am doing a browser detection that will work once IE7 is released. My current detection statement (written using VB.NET) is: If Me.Request.Browser.Browser.ToUpper() = "IE"...
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...
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...

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.