views:

80

answers:

1

I have a page which has a partial view included within a div called test. I may request more content to be placed within this div by receiving back a PartialViewResult.

I want to be able to obtain the url of the page (i.e. what is shown in the address bar) from within the PartialView code but when I use Request.Url, it gives me the URL of the PartialView only.

Is what I'm trying to do possible at all?

+1  A: 

OK, figured out another way of doing it - now using the HTTP_REFERER Request.ServerVariable to work out what page requested it. Not a disaster if the HTTP_REFERER isn't populated, have got a fallback for that

Graeme