Get the original URL


I am rewriting the URL, In that I want to get the original url.when user request the below url: http://test.acom/test12.htm the original url of this request is below

http://test.acom/cms.aspx?pid=123 when

now I want to find out the original url how can I got that, please guide me.

You can use Request.RawUrl to get the originally requested URL by the client. This URL is always relative, so in your case, it would read /test12.htm.