Manipulating Javascript and .asp Web pages

  • Thread starter Thread starter Michael Sherwood
  • Start date Start date
M

Michael Sherwood

I want to use VB .NET to fill in forms and submit a
response to a remote Web server which uses Javascript
and .asp. It seems to me that I need some type of Java
interpreter within my VB code which I can use to move the
cursor, enter text and submit.

The alternative may be to use axWebBrowser, but then how
do I move the cursor, enter text and press buttons?

Any ideas will be greatly appreciated.

Cheers,

Michael
 
Hi Michael,

Is this to be a general program able to cope with any web site (within
reason) or do will you be dealing with a specific web server and application?

In the former case, I have no solution in mind. :-(

In the latter a better(?) approach is to forget browsing and do it
programmatically.

The first requirement is the analysis. Get the source of the web pages
that you are interested in. Examine them to see where any information that
would be useful is situated in the Html. See what happens with each Form's
submit (ie. what fields have what values, and what is sent via POST and GET).

The second part is to learn about and utilise the Http classes. These can
fetch web pages and submit data. Load the web pages that you're interested in
into your program, find and extract any information that you need from the
page. Create the POST or GET response that would have occurred if the user had
been workjing in the browser. Send of the request.

It's a lot of work. That's why there's a (?) after the word "better".

Regards,
Fergus
 
Michael,
I think the best thing you can do is look in the Webclient information in/on
MSDN.
The Webbrowser is for when you want to browse.
The Webclient is for when you know the url.
Succes.
Cor
 
Herfried,
I did not know you could do that with the webbrowser too,
I use mshtml.document for that. With that you can exact follow the document
model.
I did put this again in my archieve
Cor
 
Hi Herfried,

|| You'll find some VB6 code there ....

Just a small point. It's 'here', as in "at this place, here" :-)

Regards,
Fergus
 
Hi Fergus,

Fergus Cooney said:
|| You'll find some VB6 code there ....

Just a small point. It's 'here', as in "at this place, here" :-)

Thanks for the info.

Regards,
Herfried K. Wagner
 
Hello,

Cor said:
I did not know you could do that with the webbrowser too,
I use mshtml.document for that. With that you can exact follow
the document model.

That may work too.

HTH,
Herfried K. Wagner
 
Back
Top