link rel c# icon
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: link rel c# icon

  1. #1
    Join Date
    Oct 2011
    Posts
    7

    Post 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?

  2. #2
    Join Date
    Oct 2011
    Posts
    7

    Re: link rel c# icon

    I'm attempting to use HTMLagilitypack has anyone tried this?

  3. #3
    Join Date
    Oct 2011
    Posts
    7

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center