Relative to absolute paths in HTML (asp.net)

Posted by Jo Asakura on Stack Overflow See other posts from Stack Overflow or by Jo Asakura
Published on 2010-04-27T07:10:29Z Indexed on 2010/04/27 7:13 UTC
Read the original article Hit count: 330

Hello all,

I need to create a newsletters by URL. I to do next:

  1. Create a WebClient;
  2. Use WebClient's method DownloadData to get a source of page in byte array;
  3. Get string from source-html byte array and set it to the newsletter content.

But I have some troubles with paths. All elements' sources were relative (/img/welcome.png) but I need absolute (http://www.mysite.com/img/welcome.png).

How can I do this?

Best regards, Alex.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about html