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: 408
        
Hello all,
I need to create a newsletters by URL. I to do next:
- Create a WebClient;
- Use WebClient's method DownloadData to get a source of page in byte array;
- 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