vs2003: identify the referrer page in asp.net
        Posted  
        
            by dotnet-practitioner
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by dotnet-practitioner
        
        
        
        Published on 2010-04-12T18:09:07Z
        Indexed on 
            2010/04/12
            18:13 UTC
        
        
        Read the original article
        Hit count: 176
        
Hi,
In VS2003, I am trying to find out the particular page where the request is coming from. I want to identify the exact aspx page name.
Is there a way to only get the page name or some how strip the page name?
Currently I am 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 back with out any query string parameters and be able to identify the page MyPage123.aspx accurately...
How do I do that??
Thanks
© Stack Overflow or respective owner