简体   繁体   English

C# windows 表单浏览器控件.aspx页面上的DocumentCompleted事件

[英]C# windows form browser control .DocumentCompleted event on .aspx pages

Before I go down the rabbit hole which is over my head and I would like to avoid for now… Is there a simple way to see if an online.aspx webpage loaded in the web browser control?在我 go 进入我头顶上方的兔子洞之前,我现在想避免......有没有一种简单的方法可以查看 web 浏览器控件中是否加载了 online.aspx 网页? .html pages work fine using.DocumentCompleted for me but.aspx visually loads fine but never triggers the DocumentCompleted event. .html 页面使用.DocumentCompleted 对我来说工作正常,但.aspx 视觉上加载正常但从不触发 DocumentCompleted 事件。 I saw some good articles that mention the need of creating separate 3 threads and etc… unlike in those articles I am not interacting with the web application (the user is) I just want to hide a few irrelevant DIV elements on the side off the page.我看到一些很好的文章提到需要创建单独的 3 个线程等......不像那些文章我没有与 web 应用程序交互(用户是)我只是想在页面的一侧隐藏一些不相关的 DIV 元素.

user9938 Thank you, Unfortunately. user9938 谢谢,很遗憾。 I cannot mark your comment as an answer so I will post it for others here.我无法将您的评论标记为答案,因此我将在此处发布给其他人。

webview2 worked amazingly. webview2 效果惊人。 On aspx pages NavigationCompleted still did not work however I was able to achieve this with CoreWebView2_DOMContentLoaded在 aspx 页面上NavigationCompleted仍然无法正常工作,但是我能够使用CoreWebView2_DOMContentLoaded来实现这一点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM