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

How to fill out and submit web forms from a csharp application?

Hi,

I need to enter data into a database and the only method I have to
enter that data is through a web form.

Is there a way I can write a csharp program that will get the form,
fill it out with the data I provide, and then submit it?

Is this easy or not so easy? What classes do I use to get the form,
fill it out, and then submit it? Any pseudo code would be great.

Thanks,
John
Nov 18 '05 #1
1 1856
Hi John:

You can use classes from the System.Net to programatically submit the
form. Look at WebRequest and WebClient. WebClient is simple to use but
does have all the flexibility and options of WebRequest.

I have an article here, which posts to a login form:
http://odetocode.com/Articles/162.aspx

--
Scott
http://www.OdeToCode.com

On 26 Jul 2004 05:42:44 -0700, jo********@hotmail.com (John) wrote:
Hi,

I need to enter data into a database and the only method I have to
enter that data is through a web form.

Is there a way I can write a csharp program that will get the form,
fill it out with the data I provide, and then submit it?

Is this easy or not so easy? What classes do I use to get the form,
fill it out, and then submit it? Any pseudo code would be great.

Thanks,
John


Nov 18 '05 #2

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

Similar topics

4
by: Rigga | last post by:
Hi, I am looking for the best way to use Python to get a web page, look for some particular fields on a form, fill in the fields and submit the form but I have no idea where to start - any...
4
by: Barry Margolin | last post by:
Can I do the following with Javascript? My state has a web site that can be used for online filing for unemployment benefits. Every week I have to go to the site and fill in a form, checking...
3
by: Job Lot | last post by:
Can some please provide some tips, links whatever possible on creating Graphs in WINDOWS FORMS application (not web forms), using DataSet, DataTable etc etc… anything. I am totally lost and cud...
1
by: Ray Ackley | last post by:
Is it possible to use the NetworkSteam or Sockets to somehow fill out a remote HTTP form? Can this be done with another class (or even a 3rd party utility?) I need to automate resetting the...
14
by: Brian Keating EI9FXB | last post by:
I wonder can anyone reccomment a solution to this problem. Let me explain, I've services running on my system, my application receives diagnostic messages from these services, what i want to do...
4
by: Publicjoe | last post by:
Hi guys, I am writing an app that I wish to have a transparent background and hence a shaped form. In the InitializeComponent() method I set the members of the form to the following: //--...
6
by: lphan | last post by:
Hi there, The project that I'm working on is a securty piece of n-tier applications which try to authenticate a user. The login page, either a web form or windows form, calls a web service (thin...
18
by: Frank M. Walter | last post by:
Hello, I have made an small AddIn with udf for excel 2003. I use vs2003. The point of view is the function __T() I call it in excel sheet writing =__T() I am not able to set a value to a...
1
by: yaFaheem | last post by:
This is my first exposure to perl Mech when I am trying to autofill a php script. As per perl Mechaize docs, there are numerous functions to fill out a text field and submit. However, what if the...
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:
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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.