473,549 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ 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 1056
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
7542
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 with little success. - When a new window is trying to pop up, how do I determine the target URL? How can I get the page to open in the current...
9
3795
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
3447
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, displays, and executes. To gain this control, you need to implement your host's IDispatch so it handles DISPID_AMBIENT_DLCONTROL. When the WebBrowser...
0
1346
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. Once I tell the browser to navigate to my page it dose not load it up but goes to the next command and disables browsing all together and dose
12
6339
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 of course it's thrown up a whole host of new issues... I'm generating a multi page printable document in HTML from my app, and displaying it in a...
8
3391
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
1382
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 WebBrowser control on my main form. The exception simply states "Request Failed". If I remove the WebBrowser control from the form, it works fine. The...
0
1202
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 dialog as expected. The same URL in the WebBrowser control returns the' site not found or may be temporarily unavailable' display. I would expect...
11
2808
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
1082
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 get the session value. but i don't know. can any one help me. pls urgent.
0
7524
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7451
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7720
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7812
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5372
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5089
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
766
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.