473,387 Members | 1,585 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.

Using .net to enter form values (WebClient)

Hi,

I'd like to write a web service that goes to a specified web page, enters
some data in the forms on there and gets the response. Can anyone give me a
helping hand to get started (like open a page and enter one value on a
form)? Thanks!

Tom
Nov 17 '05 #1
2 1183
What you can do is find out what page that the form with the fields on it is
being posted to, and then send your request to that page, instead of trying
to fill out fields on the form. You can potentially send them in the URL,
for example:

If the page has a form which is being posted to ReceiveData.aspx, and the
page has a field with an ID of 'Name', you may be able to just go the the
page 'http://www.myweb.com/ReceiveData.aspx?Name=Tom' and get the desired
result.
-Darrin


"Tom Yates" <to******@askme.com> wrote in message
news:bn*************@ID-191453.news.uni-berlin.de...
Hi,

I'd like to write a web service that goes to a specified web page, enters
some data in the forms on there and gets the response. Can anyone give me a helping hand to get started (like open a page and enter one value on a
form)? Thanks!

Tom

Nov 17 '05 #2
You will have to use HttpWebRequest class in the web
service to call the PROCESSING page (not necessary the
page when data is entered). You will have to build the
post data by yourself.
-----Original Message-----
Hi,

I'd like to write a web service that goes to a specified web page, enterssome data in the forms on there and gets the response. Can anyone give me ahelping hand to get started (like open a page and enter one value on aform)? Thanks!

Tom
.

Nov 17 '05 #3

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

Similar topics

4
by: Brent | last post by:
Hi, I want to build an app (C#, windows app, or web app, shouldn't make a difference) that submits an address to the canada post website's address lookup and then scrape the postal code out of the...
0
by: AlanF | last post by:
Here is my perplexing issue and I've looked EVERYWHERE for help (well almost everywhere.... probably should have started here :)) I am using a Webclient to successfully retrieve a "downloadata"...
4
by: Dennis E. Jones, Jr. | last post by:
I need to post an ASP.NET form between sites for report processing. Site A contains the asp.net forms and site B contains Java Servlets for report processing. All form fields values must be...
3
by: Brian | last post by:
Hi, I've been trying to find a way to upload file to another site that is not using IIS. The site that I want to upload file to has a simple php script to receive file uploaded through standard...
1
by: Scampi | last post by:
Hi, I've been working on an application to do some 'scraping' of web content, using the WebClient class. I'm using code rather like the following.. Dim objWebClient As New WebClient Dim...
3
by: tscamurra | last post by:
Hello, I have a web app that performs screen scaping and submits a form. My code worked until the page was changed to use .aspx code. I am updating my code to conform to the new pages but am...
4
by: Natalia | last post by:
Hello, I need to provide the ability to post file and some form elements via our website (asp.net) to the third party website (asp page). On http://aspalliance.com/236#Page4 - I found great...
3
by: bilalkhan | last post by:
Hello I m using MS Acces 2007, I need to create a form through which a user can enter all the parameter values in the form and these values will automatically picked by a query: Here is the...
3
by: smarttechie | last post by:
hi all i want to access gmail programatically using c#. i will just enter my email id & password. if the email id & password is true then the server will give me a response. pls help me thanks in...
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: 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: 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
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?
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.