Browser refresh forgets the original request

  • Thread starter Jaikanth Sithambaranathan via .NET 247
  • Start date
J

Jaikanth Sithambaranathan via .NET 247

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
 
J

jasonkester

Jaikanth said:
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/
 
B

bruce barker

you should avoid use of UrlReferrer as many proxy server will strip it from
the request.

-- bruce (sqlwork.com)


message 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
 

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

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top