Expert Help needed for browser control

Posted on 2006-04-10
Last Modified: 2010-04-07
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,
Question by:John Account
    LVL 9

    Expert Comment

    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:

    Author Comment

    by:John Account
    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.
    LVL 9

    Accepted Solution

    On every time browser searches the web page from cache first. And compare it with available version in appropriate web server if the available version is(i.e. time stamping) different one then the browser selects to download the latest version from the web server. If the available in chache is same version then it reads the page from chache and displays it. This is actually what happened in the browsers. To make ur browser control working in off line then u can try as following :
    Step 1. Open web browser(i.e. internet explorer)
    Step 2. Click on File -> Work Offline this will make ur browser to work off line.
    Step 3. Then u can open ur application see what happens there, it will work for u.

    with best wishes.
    N.Pradap Kumar

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now