February 13th, 2012 02:30 PM
#1
link rel c# icon
I am returning an Icon not a bitmap or image by the way.
I need to know how to get an icon from the HTML of a webpage in my a Webbrowser control in my project.
A html code such as this:
<link rel="shortcut icon"
href="http://example.com/myicon.ico" />
The "http://example.com/myicon.ico" part could be anything, how would I extract an Icon from this?
Also somethings it can just be "/myicon.ico" without the rest of the url, how would I get an Icon from that?
February 13th, 2012 04:44 PM
#2
Re: link rel c# icon
I'm attempting to use HTMLagilitypack has anyone tried this?
February 15th, 2012 04:08 PM
#3
Re: link rel c# icon
How does one use Regex? I want to find parts between particular text not a string, because the string can be anything; whaterver/favicon.ico, http://something.com/logo.ico , icon.ico. But it is always situated in between <link rel="shortcut icon"
href=" and "/>.
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks