Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Guys

I have a requirement.

We have to fill a web site (Eg Name,Address,age one at a time) from an excel data source where the name,address,age of about 100 students are listed. Currently we are doing this one by one like looking at the first student in the excel sheet and fill in the web site then click on the save button and then go on to the next row in the excel sheet.


This is very time consuming and has became an issue where we have to do some thing to automate. I have looked online (google) for any tip without much luck and will be great, if some one could shed some light ?

thanks in advance for your great help, each and every tip / help will be very much apprecited.
Posted
Updated 5-Aug-16 23:57pm
v2
Comments
ZurdoDev 30-Oct-12 13:23pm    
Do a search on "c# how to post data to a website" You can mimic a user filling out the form through C#.
Bala Selvanayagam 30-Oct-12 13:36pm    
thanks ryanb31

http://msdn.microsoft.com/en-us/magazine/cc337896.aspx

looks usefull through poweshell but not sute untill proven

I am mainly looking to send key strokes (TAB to navigate between controls) and paste the text box values


looks promising http://stackoverflow.com/questions/7610558/how-to-automate-firefox-with-powershell
bbirajdar 31-Oct-12 3:01am    
Why not upload the excel to the server and read it record by record and then insert into database?
Bala Selvanayagam 31-Oct-12 3:10am    
The challenge is, the web site is a third party web site and into which, we needs to input the release details(do not worry about what is release but records like students name, address & age) o about 200 records every day and takes 4 hours of a single staff causing delays.

We do not have any control over the web site / database ( its on java server pages) but have a login user name and password to input the data

1 solution

You can import your excel to Datagrid and on submit, you can convert the data from Datagrid to xml and save in Database using Stored Procedures.

For importing Excel to Datagrid sample code, there are many links available

http://www.c-sharpcorner.com/uploadfile/ankurmee/import-data-from-excel-to-datagridview-in-C-Sharp/[^]

http://csharp.net-informations.com/datagridview/csharp-datagridview-load-excel.htm[^]
 
Share this answer
 
Comments
Bala Selvanayagam 31-Oct-12 3:11am    
This may not work, please read my requirement careully

The challenge is, the web site is a third party web site and into which, we needs to input the release details(do not worry about what is release but records like students name, address & age) o about 200 records every day and takes 4 hours of a single staff causing delays.

We do not have any control over the web site / database ( its on java server pages) but have a login user name and password to input the data

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900