In VS2003, I am trying to find the specific page where the request is coming from. I want to determine the exact name of the aspx page.
Is there any way to get the page name or some way to remove the page name?
I am currently using the following instruction ...
string referencepage = HttpContext.Current.Request.UrlReferrer.ToString();
and I get the following result ...
" http: //localhost/MyPage123.aspx? myval1 = 3333 & myval2 = 4444 ;
I want to get the result with any query string parameters and be able to accurately identify the MyPage123.aspx page ...
How should I do it?
source
share