473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

axWebBrowser and HTMLInputElement

Hi
I need an immediate help from you guys. I am doing a project, that automate
the web browser control. It has to fill some text fields and click a submit
button.

I use the below code tho fill it and click.
********************************
HTMLDocument myDoc = new TMLDocumentClass();
myDoc = (HTMLDocument) axWebBrowser1.Document;

HTMLInputElement otxtSearchBox = HTMLInputElement) myDoc.all.item("subject",
0);

otxtSearchBox.value= "intel corp ";

HTMLInputElement otxtSearchBox1 (HTMLInputElement) myDoc.all.item("mailbody",
0);

otxtSearchBox1.value = "Body";

HTMLInputElement btnSearch = HTMLInputElement) myDoc.all.item("-Send-",0);
btnSearch.click();

Here all the controls should have some name to perform this actions. But in a
html page the submit button hasn't have any name.
Here is my question : How can i click that button.

Please i need this problem to be solved as soon as possible.

Thank you guys.

Rajesh
Nov 22 '05 #1
1 2128
Hi,

Does the form has a name or ID , if so you can just invoke the form's
submit method that will result in a for submission.

I hope it will solve your problem.

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: TF | last post by:
hi, i am using AxWebBrowser control in my C# dot.net windows application. i want to display a web page in the browser that needs some data sent to it through HTML Form 'POST' method. I saw a...
4
by: Martin Ho | last post by:
Hey Everyone, I really hope there is someone who can figure out this problem. Honestly, I spent 3 days now trying to find the solution, but nothing works. I'll try to explain the problem...
4
by: davidw | last post by:
I put a AxWebBrowser control into a window, I want a textbox in the page that control call to be focused, if I call the webpage directly, I can see the textbox is the focused one, but when I call...
1
by: nsrajesh via DotNetMonster.com | last post by:
Hi I need an immediate help from you guys. I am doing a project, that automate the web browser control. It has to fill some text fields and click a submit button. I use the below code tho fill...
0
by: Matthias Kwiedor | last post by:
I have a aplication which hosts an axWebbrowser. This activex component needs about 10 to 15 mb of memory. Because i have a option to move the aplication to tray icon and do some timer work i...
3
by: Clint MacDonald | last post by:
I have used the AxWebBrowser in a Visual Basic Project... I found that both Framework 1.0 and 1.1 had to be installed for it to work properly. I now have found that in Studio 2003, that the...
0
by: Tom Grinnert | last post by:
Hello, I try to create an automatic login for the gmx email web page (http://www.gmx.net/de/dienst/). Unfortunally the Button for login in has no Id and no name in the HTML Dokument: ...
7
by: Doe | last post by:
Okay, I've given up on using the "new" WebBrowser in 2005 to do what I want to do -- tabbed browsing. It seems I really need RegisterAsBrowser and Application to get each instance of a browser...
6
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the...
0
by: Manish Verma | last post by:
mshtml.HTMLDocument d = (mshtml.HTMLDocument)brWeb.Document; HTMLInputElement btnSubmit = (HTMLInputElement)d.all.item("btnSubmit", 0); btnSubmit.value = "DFGD"; btnSubmit.click(); how trap...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...

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.