473,387 Members | 1,882 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,387 software developers and data experts.

Web Browser Question

I have a very simple web browser which connects to a web site (lets
say Google for example). How can I get
my program to enter data that I type into the Google page and press
the submit button? By this I mean that I have a text box in my program
that I want to transfer data to the web page?

Thanks

K.
Aug 9 '08 #1
3 832
kr*******@yahoo.co.uk wrote:
I have a very simple web browser which connects to a web site (lets
say Google for example). How can I get
my program to enter data that I type into the Google page and press
the submit button? By this I mean that I have a text box in my program
that I want to transfer data to the web page?

Thanks

K.
There is two ways of sending data in a request to the server. You can
either make a POST or a GET.

In a GET request you send the data by adding it to the URL.

In a POST request you can also send form data.

The form in the web page has a method property that determines how the
browser sends the data. If it's not present, GET is the default.

--
Göran Andersson
_____
http://www.guffa.com
Aug 10 '08 #2
On Aug 10, 12:13 am, kronec...@yahoo.co.uk wrote:
I have a very simple web browser which connects to a web site (lets
say Google for example). How can I get
my program to enter data that I type into the Google page and press
the submit button? By this I mean that I have a text box in my program
that I want to transfer data to the web page?

Thanks

K.
If understood correctly, place a textbox, a button and a webbrowser on
your form, the textbox is for that you'll use to input words to search
in Google. So, after pressing button the search will be performed and
your webbrowser will be navigated to search result directy using:
' Here is your button's click event
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
' Webbrowser control to display result with combining input in
TextBox1 control
WebBrowser1.Navigate("http://www.google.com/search?hl=en&q=" &
TextBox1.Text)
End Sub
Hope this helps,

Onur Güzel
Aug 10 '08 #3
Kronecker,

A so called webbrowser is nothing more then the reusing in IE, so find out
how to do it in IE then you know it in the WebBrowser.

Cor

<kr*******@yahoo.co.ukschreef in bericht
news:fc**********************************@h17g2000 prg.googlegroups.com...
>I have a very simple web browser which connects to a web site (lets
say Google for example). How can I get
my program to enter data that I type into the Google page and press
the submit button? By this I mean that I have a text box in my program
that I want to transfer data to the web page?

Thanks

K.
Aug 10 '08 #4

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

Similar topics

8
by: R. Smits | last post by:
I've have got this script, the only thing I want to be changed is the first part. It has to detect IE version 6 instead of just "Microsoft Internet Explorer". Can somebody help me out? I tried...
7
by: Nathan Sokalski | last post by:
I want to make sure I am doing a browser detection that will work once IE7 is released. My current detection statement (written using VB.NET) is: If Me.Request.Browser.Browser.ToUpper() = "IE"...
10
by: Nathan Sokalski | last post by:
I want to make sure I am doing a browser detection that will work once IE7 is released. My current detection statement (written using VB.NET) is: If Me.Request.Browser.Browser.ToUpper() = "IE"...
7
by: Nathan Sokalski | last post by:
I want to make sure I am doing a browser detection that will work once IE7 is released. My current detection statement (written using VB.NET) is: If Me.Request.Browser.Browser.ToUpper() = "IE"...
1
oranoos3000
by: oranoos3000 | last post by:
hi i,m writing a script for chat room i,d like to with clicking close button of browser user is exited from site meaning of this say is with clicking close button all of session variable is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
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...

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.