I need to enter data on a web page. I have been able to navigate using the
VB.NET WebBrowser control and see the contents of each page. What I need to
do now is to fill in the controls on the page with text and send an <enter>
key. If WebBrowser can't do this, does anyone know of a different managed
control that can do this?
Dab 4 4867
Hi,
Here is the code I use to call a JavaScript a the page. So you can create a
function in JavaScript which will to the change on the form with the
arguments passed to it.
Dim MyWin As IHTMLWindow2 = PageForText.Doc ument.parentWin dow
MyWin.execScrip t("SetHTML("" " & HTML.Replace("" "", "\""") & """);",
"javascript ")
Mine was used with only one paramater, but you can do what you want.
You will need to have a reference to Interop.SHDocVw and AxInterop.SHDoc Vw.
(If you need those tell me I'll send 'em to you). These are for the old
browser version, but it's working really fine.
--
Thanks,
Jonathan Boivin
--- jo************@ cints.net | http://www.cints.net
"David A. Beck" <da****@beckb.c oma écrit dans le message de news:
%2************* ***@TK2MSFTNGP0 3.phx.gbl...
>I need to enter data on a web page. I have been able to navigate using the VB.NET WebBrowser control and see the contents of each page. What I need to do now is to fill in the controls on the page with text and send an <enter> key. If WebBrowser can't do this, does anyone know of a different managed control that can do this?
Dab
I'm using this to fill in data on a web page controlled by someone else from
a VB.NET program. I'm struggling with how I would use JavaScript in this
context. Can you help me understand?
"Jonathan Boivin" <dj**@cyberinte rnautes.netwrot e in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
Hi,
Here is the code I use to call a JavaScript a the page. So you can create
a function in JavaScript which will to the change on the form with the
arguments passed to it.
Dim MyWin As IHTMLWindow2 = PageForText.Doc ument.parentWin dow
MyWin.execScrip t("SetHTML("" " & HTML.Replace("" "", "\""") & """);",
"javascript ")
Mine was used with only one paramater, but you can do what you want.
You will need to have a reference to Interop.SHDocVw and
AxInterop.SHDoc Vw. (If you need those tell me I'll send 'em to you). These
are for the old browser version, but it's working really fine.
--
Thanks,
Jonathan Boivin
--- jo************@ cints.net | http://www.cints.net
"David A. Beck" <da****@beckb.c oma écrit dans le message de news:
%2************* ***@TK2MSFTNGP0 3.phx.gbl...
>>I need to enter data on a web page. I have been able to navigate using the VB.NET WebBrowser control and see the contents of each page. What I need to do now is to fill in the controls on the page with text and send an <enterkey. If WebBrowser can't do this, does anyone know of a different managed control that can do this?
Dab
What I would do then, it's downloading the HTML page (or reading the HTML
content within the browser) and after post back a url which is the one of
the form desired added by the fields & values.
Ex : http://www.DOMAIN.com/submit.asp?fie...&field2=value2
Jonathan Boivin
--- jo************@ cints.net | http://www.cints.net
"David A. Beck" <da****@beckb.c oma écrit dans le message de news: e6************* *@TK2MSFTNGP04. phx.gbl...
I'm using this to fill in data on a web page controlled by someone else
from a VB.NET program. I'm struggling with how I would use JavaScript in
this context. Can you help me understand?
"Jonathan Boivin" <dj**@cyberinte rnautes.netwrot e in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>Hi,
Here is the code I use to call a JavaScript a the page. So you can create a function in JavaScript which will to the change on the form with the arguments passed to it.
Dim MyWin As IHTMLWindow2 = PageForText.Doc ument.parentWin dow
MyWin.execScri pt("SetHTML("" " & HTML.Replace("" "", "\""") & """);", "javascript" )
Mine was used with only one paramater, but you can do what you want.
You will need to have a reference to Interop.SHDocVw and AxInterop.SHDo cVw. (If you need those tell me I'll send 'em to you). These are for the old browser version, but it's working really fine.
--
Thanks, Jonathan Boivin --- jo************@ cints.net | http://www.cints.net
"David A. Beck" <da****@beckb.c oma écrit dans le message de news: %2************ ****@TK2MSFTNGP 03.phx.gbl...
>>>I need to enter data on a web page. I have been able to navigate using the VB.NET WebBrowser control and see the contents of each page. What I need to do now is to fill in the controls on the page with text and send an <enterkey. If WebBrowser can't do this, does anyone know of a different managed control that can do this?
Dab
What I would do then, it's downloading the HTML page (or reading the HTML
content within the browser) and after post back a url which is the one of
the form desired added by the fields & values.
Ex : http://www.DOMAIN.com/submit.asp?fie...&field2=value2
Jonathan Boivin
--- jo************@ cints.net | http://www.cints.net
"David A. Beck" <da****@beckb.c oma écrit dans le message de news: e6************* *@TK2MSFTNGP04. phx.gbl...
I'm using this to fill in data on a web page controlled by someone else
from a VB.NET program. I'm struggling with how I would use JavaScript in
this context. Can you help me understand?
"Jonathan Boivin" <dj**@cyberinte rnautes.netwrot e in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
>Hi,
Here is the code I use to call a JavaScript a the page. So you can create a function in JavaScript which will to the change on the form with the arguments passed to it.
Dim MyWin As IHTMLWindow2 = PageForText.Doc ument.parentWin dow
MyWin.execScri pt("SetHTML("" " & HTML.Replace("" "", "\""") & """);", "javascript" )
Mine was used with only one paramater, but you can do what you want.
You will need to have a reference to Interop.SHDocVw and AxInterop.SHDo cVw. (If you need those tell me I'll send 'em to you). These are for the old browser version, but it's working really fine.
--
Thanks, Jonathan Boivin --- jo************@ cints.net | http://www.cints.net
"David A. Beck" <da****@beckb.c oma écrit dans le message de news: %2************ ****@TK2MSFTNGP 03.phx.gbl...
>>>I need to enter data on a web page. I have been able to navigate using the VB.NET WebBrowser control and see the contents of each page. What I need to do now is to fill in the controls on the page with text and send an <enterkey. If WebBrowser can't do this, does anyone know of a different managed control that can do this?
Dab This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 browser control?
- When printing from the webbrowser control is there a way to ensure it
prints...
|
by: Vetrivel |
last post by:
Application architecture : Develop interface between two existing
systems,
a. Enterprise CRM system
b. Web based intranet system.
Environment : Intranet
Server : IIS and ASP.
Script : VBScript and Javascript
Client : 1. IE browser.
2. VBForm embedded with WebBrowser control (MS Internet
|
by: Supra |
last post by:
I have a tab control in a which a few of the tabs include an AxWebBrowser browser control. Let say i have currently tabpage2 and i typed url in combobox when i pressed enter it doesn't display webbrowser instead i can do create new tab. ne one knows how to display currrently displayed regardless of tabpage(s)?
here is code:
Public Sub AddBrowserTab()
AxWebBrowser1.Visible = False
Dim newPage As TabPage = New TabPage(Text) ' Delcare and...
|
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 :
*************************************************
|
by: Lance |
last post by:
Hi All,
Given a collection of links, how can I send them to a WebBrowser Control so
that I can manipulate it's document? Ok, that's way too simplified of a
question. I know how to send a link to a WebBrowser:
/////
WebBroweser1.Navigate(Link)
/////
| |
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
|
by: Balex |
last post by:
hi,
I have a VB.Net app which "reads" in html pages from a web server using winhttp. The purpose is for the app to "fill in" data fields on the page, then send it back to the web server, as if a user had been entering the data in his web browser. It's part of a data input automation project.
I'd like, for my own testing, to show the pages I am accessing. So I added a webBrowser control to my main form, I have the html sent by the server...
|
by: David Veeneman |
last post by:
In .NET 2.0, how do I clear the contents of a web browser control?
I'm using a WebBrowser control in a Windows Form app to display strings
genrated by my application and formatted as HTML--I'm not using it to do any
actual web browsing.
I use 'webBrowser1.DocumentText = myText' to load an HTML string into the
control. But I can't clear that text when I want to load a new string into
the control.
|
by: kimiraikkonen |
last post by:
Hi,
Just to test, i placed a simple webbrowser to login a site, this site
has no problems and has same error with IE6 SP2 but it's suppressed as
well and no problem with Firefox browser, but using webbrowser it
shows scripting errors:
There are a lot more sites that encounters scripting problems though
they work just fine in Firefox, a sample:
http://www.anaivanovic.com/forum/login.php
|
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: 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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |