Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey,

As i am new to ASP.NET and C#, i really need some help on my project. The step-wise procedure of my project is given below -

1. Browse for an Excel file and when upload button is clicked, the content of the excel file it should be displayed on the webpage in the form of a grid.

2. User should be allowed to make changes in the cells of the Grid.

3. Another button called Submit is to be created. Upon clicking it, it should copy the changed contents of that Grid into the Database tables.

I have been able to do only the first step. I need help on the other steps.

Thanks.
Posted

I believe your only issue is reading from the excel file, rest I think you can do on your own. Try these steps:

1. Read excel to the grid. This link will be of help.
2. Edit data in your grid.
3. Once you are done with editing, you can take out the datasource of the grid(which was set in step 1) as DataTable.
4. Now this DataTable can be updated to the database. Try Google.

Hope this help.
 
Share this answer
 
I am able to read from the excel file and also have been able to display the excel content in the form of a grid. The problem that i am facing is that i am not able to edit the values or data present in the grid. Let me know if you find any solution for this.
 
Share this answer
 
hello,

Please visit below link :
Click Here....
 
Share this answer
 
Hi,
I recommend to use OLEDB JET providers to read data from Excel & manipulate
http://www.codeproject.com/KB/office/excel_using_oledb.aspx
 
Share this answer
 
v2
Comments
RakeshMeena 15-Jun-11 5:12am    
Corrected typo!

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