Getting a URL Options
jason
Posted: Friday, November 17, 2006 3:01:54 PM
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
hoehler
Posted: Friday, November 17, 2006 5:06:09 PM

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
jason
Posted: Friday, November 17, 2006 5:21:01 PM
Rank: Aficionado

Joined: 7/19/2006
Posts: 179
Location: Pittsburgh, Pennsylvania, USA
Yep, that worked. Thank you.

Jason
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.