Bilbo Baggins
Bilbo Baggins

Reputation: 13

Web Browser in c# not displaying up to date css information

I have a C# application with a webpage displaying a website. Upon recently overhauling the website (fairly simple website, not much on it) the application continues to use the old background and does not use the CSS of the new document. I suspect some form of caching is causing this problem, can anyone help me with it? (The website works fine in browser, but not in the application)

Upvotes: 1

Views: 161

Answers (1)

Alex
Alex

Reputation: 21766

You need to clear the cache of the webbrowser instance programatically:

webBrowser.Refresh(WebBrowserRefreshOption.Completely)

Upvotes: 1

Related Questions