Hi all,
I think this is a longshot, but is there a technique for programmaticall y
run a webpage?
Let's say one of our vendors has a page that we go to daily to pick up some
files. Each time, the user clicks a link, that brings up a file dialog
prompting for a local name to download to and OK's. This process is
repeated for a number of files.
I'm wondering if something like this is possible: You could have a form
hosting an MS WebControl, navigated to a page where you know the layout.
Then perhaps there might be a method exposed that would allow you to read
the text of the HTML programmaticall y. You could parse that to decipher
which href you need, then post the page as if that link had been clicked.
The whole idea feels very kludgy, even if it would work, but it would suit a
few purposes.
TIA,
John 3 3514
The typically way to do this is with regular expressions.
What you would do is the following:
'Create a connection to the web page
Dim wRequest As Net.HttpWebRequ est =
Net.HttpWebRequ est.Create("url here")
'Get a reference to the response object
Dim wResponse As System.Net.Http WebResponse =
wRequest .GetResponse
'Get the web page
Dim sr As New IO.StreamReader (obj.GetRespons eStream)
Dim strPage As String = sr.ReadToEnd
Then, parse the strPage variable using regular
expressions to find the correct a href tag.
Hope this helps.
Jeff Levinson
Author of "Building Client/Server Applications with
VB.NET: An Example Driven Approach" -----Original Message----- Hi all,
I think this is a longshot, but is there a technique for
programmaticall yrun a webpage?
Let's say one of our vendors has a page that we go to
daily to pick up somefiles. Each time, the user clicks a link, that brings
up a file dialogprompting for a local name to download to and OK's.
This process isrepeated for a number of files.
I'm wondering if something like this is possible: You
could have a formhosting an MS WebControl, navigated to a page where you
know the layout.Then perhaps there might be a method exposed that would
allow you to readthe text of the HTML programmaticall y. You could parse
that to decipherwhich href you need, then post the page as if that link
had been clicked. The whole idea feels very kludgy, even if it would work,
but it would suit afew purposes.
TIA,
John
.
John.
Try Windows Scripting Host - I have seen complete web site test harnesses
built using this language
- peteZ
"John Spiegel" <js******@c-comld.com> wrote in message
news:uN******** ******@TK2MSFTN GP10.phx.gbl... Hi all,
I think this is a longshot, but is there a technique for programmaticall y run a webpage?
Let's say one of our vendors has a page that we go to daily to pick up
some files. Each time, the user clicks a link, that brings up a file dialog prompting for a local name to download to and OK's. This process is repeated for a number of files.
I'm wondering if something like this is possible: You could have a form hosting an MS WebControl, navigated to a page where you know the layout. Then perhaps there might be a method exposed that would allow you to read the text of the HTML programmaticall y. You could parse that to decipher which href you need, then post the page as if that link had been clicked.
The whole idea feels very kludgy, even if it would work, but it would suit
a few purposes.
TIA,
John
Thanks, guys. I'm looking into these!
"John Spiegel" <js******@c-comld.com> wrote in message
news:uN******** ******@TK2MSFTN GP10.phx.gbl... Hi all,
I think this is a longshot, but is there a technique for programmaticall y run a webpage?
Let's say one of our vendors has a page that we go to daily to pick up
some files. Each time, the user clicks a link, that brings up a file dialog prompting for a local name to download to and OK's. This process is repeated for a number of files.
I'm wondering if something like this is possible: You could have a form hosting an MS WebControl, navigated to a page where you know the layout. Then perhaps there might be a method exposed that would allow you to read the text of the HTML programmaticall y. You could parse that to decipher which href you need, then post the page as if that link had been clicked.
The whole idea feels very kludgy, even if it would work, but it would suit
a few purposes.
TIA,
John
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Claire |
last post by:
Sorry for such a daft question.
Ive been following some tutorials on creating windows services. Ive not done
them before.
In my original debuggable windows form application, I create my worker
classes. The classes 'run' themselves using several threads and only stop
when the form is closed.
Now I've used these worker classes in the service application. When I try to
run my service manually, I am given a message that the service stopped...
|
by: Mike Kingscott |
last post by:
Hi all,
Ok, I'm running Windows 2000, service pack 4. I have .Net framework
installed, version 1.1.4322, I'm running IIS 5.0. When I try to open a
solution that was opening just dandy last week, I get the error
"Visual Studio .NET has detected that the specified Web server is not
running ASP.NET version 1.1"
I HAVE ALREADY TRIED RUNNING aspnet_regiis -i (SEVERAL TIMES) WITH
*NO* LUCK
|
by: gregory_may |
last post by:
According to this article, I cant change "CanStop" on the fly!!!
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemserviceprocessservicebaseclasscanstoptopic.asp
So, how can I enable/disable the ability for a user to kill my service (Via
Task Manager) on the fly?
I would prefer not to tweak the regestry settings that permit Task manager
from be available to a user. I have not had good luck down...
|
by: John Spiegel |
last post by:
Hi all,
I think this is a longshot, but is there a technique for programmatically
run a webpage?
Let's say one of our vendors has a page that we go to daily to pick up some
files. Each time, the user clicks a link, that brings up a file dialog
prompting for a local name to download to and OK's. This process is
repeated for a number of files.
|
by: Mr BigSmoke |
last post by:
Hi All,
I'm developing a website to handle some code/application version
control on a intranet. I'm using cherrypy and pysvn. Everything runs
quite good but i want the user to be able to checkout some projects
from the server. The user(on the client side) selects a folder in his
machine (i.e.: C:\Project1) and the server should checkout
(download/copy) all the project selected to the client machine. But
what happens is that the webserver...
| |
by: Jono |
last post by:
Hi Everyone,
As it says in the title, I'm looking for a way to display a page while
long running operations are performed on the server. Ideally, I'd like
some way to push the current request onto some stack, where it would
continue to be processed asynchronously (most importantly preserving
things like view state, form post data, etc). In the interim, while the
main request is processed, a friendly page will be displayed to the
user....
|
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= |
last post by:
Hi;
How are we supposed to handle this. It appears that this must be run on a
system for an ASP.NET app to run. On WinXP we are finding that the user
ASPNET does not exist until this is run.
However, running this impacts all existing ASP.NET apps and sets the default
..NET for all new ones. So if we run this we can screw up all the ASP.NET apps
already on a system.
|
by: Javier1958 |
last post by:
Hi all
I have a problem running Visual Basic 2005 (.NET) programs in other computers different of that where I have Visual Studio installed.
I know I have to install the .NET framework in the other computers and so I did. I don't have problems with simple programs. They run nicely. The problem is with programs that use Excel files. In fact with just adding
Imports Microsoft.Office.Interop.Excel
to the program hampers it of running in...
|
by: |
last post by:
I've built an application that scrapes JPG images of webpages and PDF
instances of those webpages automatically from an RSS feed. References to
the scraped resources are persisted to our database. I've also built an
administrative interface that allows someone to scroll through a datalist of
the JPG images of the page and to delete the unwanted items.
The JPG previews of the webpage are rendered in several sizes: iconic,
mid-sized 600px...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |