I have a custom webpart that reads a discussion list. i am able to get the URL and direct the user to the actual discussion topic. But for some threads where the subject incudes non-text characters such as : ' etc.. the link doesnt work
Sharepoint adds %20 for space and : sign in my case and %27 for '
but whgen I pass the url value it doesnt convert the ' and : characters
Discussion subject title:Lewis Hamilton future: McLaren form is 'not key'
when you click on the thread from the list, the link is:
when I get the URL via C# it gives me:
Lists/Team Discussion/Lewis Hamilton future: McLaren form is 'not key'
then, when I try to access the link, it fails becasue the : and ' characters are not converted.
how can I get around this?
Thank you for your help and advice.
You can encode the discussion title then construct the link like the above first URL in your custom web part, then check again,
TechNet Community Support