Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / February 2008

Tip: Looking for answers? Try searching our database.

Not able to use spaces (or equivalent characters) in sitemapnode url

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jmorgret - 25 Jan 2008 22:24 GMT
I am using a sitemap for a menu and I need to reference urls that have
spaces in them.  I have tried all of the following and still get an
error saying my url is malformed.

/Pages/Content/ContentListPage.aspx?type=4&sub=White+Papers

/Pages/Content/ContentListPage.aspx?type=4&sub=White%2BPapers

/Pages/Content/ContentListPage.aspx?type=4&sub=White+Papers

I know it is the space and not the &.  It seems to accept & just
fine.

Can I not use spaces in the url?  I am updating this from an existing
project and I don't think it will be easy to change everything
containing a space.

Thanks.
Mark Fitzpatrick - 26 Jan 2008 15:53 GMT
Did you try putting %20 in there? That's the code for a URL code for a
space.

Spaces are illegal to use in a URL. Some browsers clean them up for you, but
the framework can't for this.

Signature

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression

>I am using a sitemap for a menu and I need to reference urls that have
> spaces in them.  I have tried all of the following and still get an
[quoted text clipped - 16 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***
jmorgret - 13 Feb 2008 22:22 GMT
I ended up having to use  .  This seems to work.

-Jennifer

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.