C# WebBrowser.Navigate 问题
我有一个 XML 文件存储在我的应用程序的 BIN 文件夹内的 DEBUG 文件夹中 (BIN\DEBUG\File.xml)
当我调用 WebBrowser1.Navigate("File.xml"); 时
它不会根据文件的显示来更新视图。 我知道这与由于文件夹位置不正确而找不到文件有关。 必须从此文件夹位置访问该文件。
感谢帮助
I have an XML file stored in the DEBUG folder inside the BIN Folder of my Application (BIN\DEBUG\File.xml)
When i call WebBrowser1.Navigate("File.xml");
It doesn't update the view with the display of the file. I know it's something to do with it not locating the file due to the folder location being incorrect. The file has to be accessed from this folder location.
Help appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否将 WebBrowser1.AllowNavigation 设置为 true? 你有没有尝试过:
Do you have WebBrowser1.AllowNavigation set to true? Have you tried:
当然,如果目录没有更改,这就是我使用的。 :)
This is what I use, if the directory hasn't been changed, ofcourse. :)