SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I created a new SP 2010 List of Hyperlinks using the SP2010 Hyperlinks List Template. It works so long as the hyperlinks/URL contains no spaces. When viewing the list one can click on any link and be taken to the specified URL. When the hyperlink contains a space such as is the case with some network directories like \\FileServer\Manuals\Docs & Guides\ The SP list considers the hyperlink to be only the part up until the first space. When viewing the list and clicking on an entry with a space in the URL you are taken to the incorrect location. How di I get the URL column of the SP210 List to treaty to full hyperlink as the hyperlink and not just the portion up until the first space?

How can I add the below URL/Hyperlink to the list so that when someone is viewing the list and they click on the hyperlink they will be taken to the location listed below?

\\FileServer\Manuals\Docs & Guides\
share|improve this question
up vote 0 down vote accepted

You can try to replace the space with %20

so your link should look like this:


In c#:

"someString".Replace(" ", "%20");

I do the same with normal URL and it works like a charm.

cheers Jürgen

share|improve this answer
Thanks Jurgen. This is the asnwer i needed. How to add the URL not programatically but copy & paste or just manually typing it in. This is a list of URLs & Shortcuts for all our users to make use of and add to. – Ed Carden Mar 11 '13 at 20:07
I'm glad I could help. :) – Jürgen Stürmer Mar 12 '13 at 7:05

For your url I would recommend removing the space or %20 you can use this that iv just made. pass the url string that you need to remove and it will return the url string without any spaces :)

    public static string RemoveURLSpaces(string url)
        url = url.Replace(" ", "");

        return url;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.