473,486 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB2005 WebBrowser Control

6 New Member
Hi.

You may have seen the application I have created to retrieve the contents of a page that requires authentication (through a proxy):
http://www.thescripts.com/forum/thread665675-proxy.html

In my asp.net application I can use the OutputCache declarative to cache the requests for a specific time i.e. the browser will only go back and retrieve the contents of the required page every 20 seconds. If a refresh is performed before that interval then the page is retrieved from the browsers cache.

So far I am accomplished this in the windows form version by starting a timer when the user requests the page. If they request the page again and the timer is still enabled (running) then the request is not sent.

However, my application is used for a number of different pages (a button in the menu bar representing each one).

Ideally what I would like to do is cache the contents of any page retrieved. If a timer was still running I could retrieve the html from cache, if not then I would resend the httpwebrequest.

Can anyone offer me any pointers?
Jun 22 '07 #1
1 1051
retroviz
6 New Member
Doesn't matter.

I decided that I didnt want every user to be performing the httpwebrequests. I therefore created a console application using my existing code that saved the html from the individual pages as .html documents in a shared directory. I also programatically added a reference to a custom stylesheet so that the output looked "nice" for the users.
The client side of the app then reads directly from the html documents and performs a refresh every 60 seconds. The console application is set as a scheduled task on a server and updates the files every 5 minutes.

Somehow by simply posting my problems I seem to resolve them :D

Thanks anyway

Ben
Jun 22 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
7539
by: Noozer | last post by:
I've got a WebBrowser control (AxBrowse - VCMAXB.DLL) and I'm having a few difficulties with it. Just looking for a few pointers, not whole solutions here. I've tried looking at the MSDN help files...
9
3791
by: ASP .NET Newbie | last post by:
How can I run a WebBrowser control using ASP.NET/VB.NET? I know I can use the WebClient to get the page data, but I need to be able to use the WebBrowser (AxWebBrowser)? Thanks, Chad
0
3443
by: Jim Hubbard | last post by:
How would I implement the IDispatch interface to handle the following in VB.Net <BEGIN> Controlling Download and Execution The WebBrowser Control gives you control over what it downloads,...
0
1342
by: Seb | last post by:
Hi Have a problem with my WebBrowser Class in VB2005 I have a page which I set and then need to disable browsing to any further links. But cant seem to get my head around this small problem....
12
6328
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
8
3381
by: Prosperz | last post by:
Hi, I would like to make thumbnails of web page by capture content of a WebBrowser. By example, capture http://www.google.com. I used WebBrowser control with Framework 2.0. I try this : ...
1
1377
by: Jason Tost | last post by:
Good afternoon, I was wondering if there is a way you can determine what the security requirements are of a control. I have an application that throws a security exception if there is a...
0
1186
by: gene kelley | last post by:
I have a WindowForms app that has a WebBrowser control which works as expected except for navigating to sites that require user/password. In IE, a given URL in this catagory returns the IE login...
11
2797
by: Anil Gupte | last post by:
....and how do I insert one into my form? I used in VB 6.0 last, but cannot figure out where it is in .Net Thanx, -- Anil Gupte www.keeninc.net www.icinema.com
2
1077
by: Manish http://www.vlogix.in | last post by:
Hi friends, I have create a tool to access a web page in vb.net 2005. i can able to access the parent window thro the application. but when child window popup its get log out. i think, i have to...
0
7100
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7126
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5434
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.