| |

VerySource

 Forgot password?
 Register
Search
View: 7|Reply: 2

How to use WebBrowser to read the webpage file in the local directory when remote webpage cannot be accessed

[Copy link]

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 China

Post time: 2020-3-24 01:00:02
| Show all posts |Read mode
As the title
Reply

Use magic Report

0

Threads

25

Posts

16

Credits

Newbie

Rank: 1

Credits
16

 China

Post time: 5 day(s) ago
| Show all posts
When reading a remote webpage fails, it usually returns some specific pages to display in the webBrowser, such as:

              Can't find webpage
              The webpage you are searching for may have been deleted, renamed, or temporarily unavailable.

              If you typed the web address in the "Address" field, please check its spelling.

              Open the www.5-365.com home page and look for the link to the required information.
              Click the back button to try another link.
              HTTP 404-cannot find file
              Internet Information Service

You can check whether the html text in webBrowser contains the obvious substrings in these strings, and if so, turn webBrowser to the local page
Reply

Use magic Report

1

Threads

2

Posts

3

Credits

Newbie

Rank: 1

Credits
3

 Germany

 Author| Post time: 3 day(s) ago
| Show all posts
I use
WebBrowser1.Navigate('http://192.168.0.1/index.htm')
If the page cannot be found, it is not a 404 message, but a blank

I know the theoretical knowledge, I hope to have detailed code, thank you
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2020|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list