Link to home
Start Free TrialLog in
Avatar of John Account
John Account

asked on

Expert Help needed for browser control

Major problem for me: Everytime I change the Offline property on the browser control to True, it goes back to False. I need the offline property to remain True, because I need the browser to read from cache first.

My application is consuming a great deal of bandwidth, because it's not reading from the cache. I need expert help here!

Many kind thanks in advance,
John
Avatar of pradapkumar
pradapkumar

The bool offline is just a state indicator and does nothing to affect wininet behavior. What you need to do is set the offline/online globaly thru wininet. The below link has a sample api to do just that thru setoptions:

http://www.vbip.com/wininet/wininet_connection_01.asp
Avatar of John Account

ASKER

Whereas I think I now understand that Offline property is used to render a boolean value indicating whether or not the browser is online or offline, I don't know how the link you provided would help me to achieve what I want to achieve, pradapkumar.

Here's the problem: Everytime my browser control goes to a web page, it re-downloads everything, instead of reading it from cache first; hence draining bandwidth from my web server.

Here's what I want to achieve: If the page is in cache, grab it and all it's associated files from there first.
ASKER CERTIFIED SOLUTION
Avatar of pradapkumar
pradapkumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial