replace DNS error page
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: replace DNS error page

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    replace DNS error page

    Hi,
    I have a problem and I need some help.
    I work on a BHO and I have to replace the IE's DNS error page with my custom page. Does anyone know how to do it?

  2. #2
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,100

    Re: replace DNS error page

    Not sure which error you refer to. but it's probably one of the special "about:" URI's

    Look at the URL bar and take note of the URI.

    In your BHO, when you see an attempt to browse to that URI, simply cancel and provide your own contents (or allow the navigate and then modify the page as desired).


    It's also possible you're seeing a page from a remote site (or your router/proxy software) in response to trying to accessing a certain URL. If this is the case you probably can't do much about it other than parsing the contents to see what it is and take steps post navigate.

  3. #3
    Join Date
    Feb 2011
    Posts
    2

    Re: replace DNS error page

    When you type a dns that doesn't exists IE shows "Internet Explorer cannot display the webpage". I did like you said but I cannot catch refresh event from BHO.

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