.NET Questions (CLOSED)

Questions and Answers on any aspect of .NET. Now closed.

This discussion group is now closed.

Have a question about .NET development? Try stackoverflow.com, a worldwide community of great developers asking and answering questions 24 hours a day.

The archives of .NET Questions contain years of Q&A. Even older .NET Questions are still online, too.

URL's in emails

HI,

I'm trying to put a URL into an email which contains spaces within the filename but this causes the URL to break on hitting the space.

I've looked around but can't find a solution.

Any help would be appreciated

Thanks
Rich
Richard Southern Send private email
Friday, November 16, 2007
 
 
Try replacing the space by %20
Joe
Friday, November 16, 2007
 
 
HttpUtility.UrlEncode() is your friend.
Nathan Edminster Send private email
Friday, November 16, 2007
 
 
Put it between < >. Works for network shares as well:

<\\Server1\Path with spaces>
Bas
Friday, November 16, 2007
 
 
Thanks Guys,

I'll try this out

Rich
Richard Southern Send private email
Saturday, November 17, 2007
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz