如何清除浏览器

如何清除浏览器

问题描述:

在表格上,我放置了一个计时器组件,该组件每15秒将数据加载到Web浏览器中.每次调用浏览器堆栈中的数据.至于新的计时器标记,则可以在浏览器中删除以前的数据.

On the form I placed a timer component that every 15 seconds loads the data to the webbrowser. Each call to the data in the browser stack. As for the new timer tick to delete previous data in the browser

您无需删除任何内容.您只需要使用导航方法,例如NavigateGoForwardGoBack等.

太糟糕了,您没有告诉您使用WebBrowser的确切类型.当您问这样的问题时,您总是需要告诉一个完全限定的类型名称.如果WebBrowser类不同,则其他一些成员也不同.

无论如何,类实例不会存储与页面相关的任何数据.此类数据存储在系统中的全局Web浏览器缓存中.通常,除非用户明确命令,否则没人会删除它.删除或清理缓存是一个完全不同的问题,您也可以解决.

我找到的第一个解决方案是: http://*.com/questions/2030804/c-sharp-webbrowser-control-clearing-cache-without-clearing-cookies [
You don''t need to delete anything. You just need to use navigation methods like Navigate, GoForward, GoBack, etc.

Too bad you did not tell use exact type of WebBrowser. You always need to tell a fully-qualified type names when you ask questions like that. In case of different WebBrowser classes, some other members are different.

Anyway, the class instance does not store any data related to the page. Such data is stored in a global Web browser cache in your system. Usually, nobody removed it unless it is explicitly ordered by a user. Deleting or cleaning the cache is a completely different problem which you can solve, too.

First solution I''ve found is this: http://*.com/questions/2030804/c-sharp-webbrowser-control-clearing-cache-without-clearing-cookies[^].

Actually, I would not recommend you to touch this unless you have a really convincing reason to do it.

—SA