views:

62

answers:

1

Hi,

I am using a web browser control do display some data in html form. Data comes from the database. The browser is inside a dialogbox, and every time the data are changed, the dialog is displayd. The problem is that it is displayed with the old values, even if it is bind with the updated object/datasourse.

Now I use a refresh button to refresh the web browser control and call the Refresh() method. But this is not what I want. I need to see the changed data on the load of the dialog box.

Does this control have any method to clear its cache?

Thnx in advance.

A: 

Yes, see http://support.microsoft.com/kb/262110

But this is no clean solution, as the webbrowser control shares the cache with IE! So if you call the function to clear the webbrowser cache, you clear the user's IE cache, too.

Instead, I recommend to trigger refresh automatically.

SamMeiers