WebBrowser.Navigate show htm file

0
0

Hi Wisej,

I am using WebBrowser showing htm file. It is not showing.

Thank you.

Attachment
  • You must to post comments
0
0

Hi Huỳnh,

Application.StartupPath simply returns the root file path of the app on the server (the client can’t load that file URL)., Something like:

C:\Users\MyUserName\MyProjects\WebBrowser\WebBrowser\ReadMe_001.htm

You need to load the url from the client’s perspective (include domain and relative path from the root)., ie.:

http://localhost/ReadMe_001.htm

Try Application.Url and Application.StartupUrl instead.

Let me know if you have any questions!

Best,

Levie

  • Levie (ITG)
    Did this work for you, Huỳnh?
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.