Getting absolute URL from relative
-
I have a Web Browser control and want to download external files like images, *.css, *.js and etc. The SRC attribute of can contains absolute and relative URLs. How to correctly obtain full URL for these files? May be there is a ready system function to download such files? I tried URLDownloadToFile, may be I must try URL monikers? Thanks! </x-turndown>
-
I have a Web Browser control and want to download external files like images, *.css, *.js and etc. The SRC attribute of can contains absolute and relative URLs. How to correctly obtain full URL for these files? May be there is a ready system function to download such files? I tried URLDownloadToFile, may be I must try URL monikers? Thanks! </x-turndown>
window.location.href is the actual URL. Just parse this, and add your resource name.
sometimes it helps to look at the IL generated code a MS guy on develop.com "answering" .NET issues