Rank: Aficionado
Joined: 7/19/2006 Posts: 179 Location: Pittsburgh, Pennsylvania, USA
|
I'm trying to read a url in my C# code. When I use sRequestedPage = Request.Url.ToString(); the return is some thing like:
http://domain/default.aspx?umbPage=pageName.aspx.
However, I need it to be like -- http://domain/pageName.aspx. I'm sure there is an umbraco function that handles this but being new to C# I haven't been able to dig it out.
Can anyone point me in the right direction?
Thanks!
Jason
|
 Rank: Addict
Joined: 7/19/2006 Posts: 597 Location: Bad Homburg, Germany
|
Try Request.RawUrl which gives you the original entered url. Thomas
• 2007/2008 MVP • www.thoehler.com • Bad Homburg, Germany
|
Rank: Aficionado
Joined: 7/19/2006 Posts: 179 Location: Pittsburgh, Pennsylvania, USA
|
Yep, that worked. Thank you.
Jason
|