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

Fill a web form using C#

nfollmer
Hi,

After getting so much help from this site, I decided to join! But thats beside the point....

I'm fairly experienced in C#, but never did anything web related, so I need some help.

What I want to do, is have a drivers license be scanned by our card readers, take all the information we need (dl number, state, address, name, date of birth) and place it into a form on another website, (autofill the information basically). I wrote the part of the program that gets all the info off the card and formats it in all the variables I have for the names and such, now i need to know how to move it to the form.

I may be mistaking, but what I get from the form, the front end is just a simple html form, then it runs a javascript app to move all the data to their server. I got all the textbox names with firefox's web developer add on. Is there anyway to send all my variables to the textboxes they belong in. Sorry for the long post, and thanks for all the previous help!
May 9 '07 #1
5 3962
Frinavale
9,735 Expert Mod 8TB
Hi,

After getting so much help from this site, I decided to join! But thats beside the point....

I'm fairly experienced in C#, but never did anything web related, so I need some help.

What I want to do, is have a drivers license be scanned by our card readers, take all the information we need (dl number, state, address, name, date of birth) and place it into a form on another website, (autofill the information basically). I wrote the part of the program that gets all the info off the card and formats it in all the variables I have for the names and such, now i need to know how to move it to the form.

I may be mistaking, but what I get from the form, the front end is just a simple html form, then it runs a javascript app to move all the data to their server. I got all the textbox names with firefox's web developer add on. Is there anyway to send all my variables to the textboxes they belong in. Sorry for the long post, and thanks for all the previous help!
Is the form already created on the server?
Is your application that reads the drivers licenses a web based system?

If it's a Windows application, have you thought about implementing it so that it generates a web-form with in the information...setting the submit to call the web application you need to submit to?...Just a thought.

Cheers!

-Frinny
May 9 '07 #2
Is the form already created on the server?
Is your application that reads the drivers licenses a web based system?

If it's a Windows application, have you thought about implementing it so that it generates a web-form with in the information...setting the submit to call the web application you need to submit to?...Just a thought.

Cheers!

-Frinny
The form is actually used to do cell phone activations, I wanted to make a small program that sent all the data to whatever service provider we were running credit for. And no, its not a web based app, its windows. I was going to install in on all the people who want to use it. Through further research on both websites I want to use, they are both using javascript and only one (cingular if your wondering) uses an html form and then passes that data to the javascript. Verizons form is strictly javascript.
Thanks for the reply!
May 9 '07 #3
Frinavale
9,735 Expert Mod 8TB
The form is actually used to do cell phone activations, I wanted to make a small program that sent all the data to whatever service provider we were running credit for. And no, its not a web based app, its windows. I was going to install in on all the people who want to use it. Through further research on both websites I want to use, they are both using javascript and only one (cingular if your wondering) uses an html form and then passes that data to the javascript. Verizons form is strictly javascript.
Thanks for the reply!

I'm confused about what you're talking about the other web pages using JavaScript.

In order to submit a web-form you have to fill out a form. Web forms are HTML. JavaScript maybe used to validate the information, do some visual effects, or be called to submit the form on the click of a button.

Anyways, while I was browsing theScripts just now I came across a thread in which someone else is trying to do something similar. They posted this link and I was wondering if it could help you. I know that it has a lot to do with web programming but the one component covered on that site might be helpful.

Cheers!

-Frinny
May 10 '07 #4
Motoma
3,237 Expert 2GB
You should take a look at the HTTP specification side by side with the website's source code. Fire up Wireshark and take a look at the data that is getting sent back and forth from the website to your browser. Pay attention to the POSTs, GETs, and COOKIE data.

You will need to establish a TCP connection to the webserver, and intelligently emulate a web browser (i.e. perform all of the actions that your browser does when it continues through the site).

Your best bet, however, would be to contact the site and see if there is a better way you could work this out, perhaps set up an API for passing and receiving information with XML.
May 10 '07 #5
I'm confused about what you're talking about the other web pages using JavaScript.

In order to submit a web-form you have to fill out a form. Web forms are HTML. JavaScript maybe used to validate the information, do some visual effects, or be called to submit the form on the click of a button.

Anyways, while I was browsing theScripts just now I came across a thread in which someone else is trying to do something similar. They posted this link and I was wondering if it could help you. I know that it has a lot to do with web programming but the one component covered on that site might be helpful.

Cheers!

-Frinny
That did the trick, thats alot! I knew someone here could help me. If anyone else needs to see how this is done, (I did mine just a little different) I'll post the code once I have all the bugs worked out :)
May 10 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

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...
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...
7
by: Auto | last post by:
I starting to use Visual Studio .NET 2003 creating C# Windows application with SQL Server and I get problem with method Fill() for which when running ends with System Error even with the most...
6
by: JeffB | last post by:
I have tried several different methods of getting a datagrid to fill with information. Below is the code I'm now using. When viewed in the browser and the text box filled with a parameter value...
0
by: tshad | last post by:
MSN has a toolbar that has a Form Fill function that will try to fill form fields on forms when they come up. The problem is that it causes problems with some forms and functions. I found this...
2
by: Woody Splawn | last post by:
I have a question about technique with regard to filling drop downs. I have a Winform that has several different tabs and tables associated with it. In an effort to keep the load time small I...
4
by: jaYPee | last post by:
I have 1 dataset called "dataset1" that contains 2 tables called "course" and "courseload". in my form i have a datagrid. the datasource of this datagrid is "dataset1" and the datamember is...
10
by: Anil Gupte | last post by:
I am playing a Windows Media File which is protected by their DRM. I want to be able to automatically fill in the form asking for payment with my saved parameters. Is there any way to do this? ...
1
by: menyki | last post by:
am still finding it difficult as a new java user. am designing a software that has multiple forms, controls such as combobox and so on and finding it difficult to do the following. i want some...
2
by: Anil Gupte/iCinema.com | last post by:
How can programmatically I fill in a form on a web page in VB? This is in a desktop program and I am using Webclient right now to get info on a page. In some cases it asks me to login and I want...
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
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: 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...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
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,...

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.