Click here to Skip to main content
15,885,771 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have an issue regarding the excel upload,i need to Import 25 sheets of data(1 work book) into 25 respective database tables from .net web application to sql server database. Please help me to resolve
Posted
Comments
Saad Saadi 29-Dec-15 7:36am    
there are excel plug-ins available in asp.net. Using that, you can retrieve the data from Excels and load in SQL Server using SQL namespace.
venu.kandukury 29-Dec-15 7:43am    
Hi Saadi

Thanks for your reply very much.

But i need to import through the file upload button so i need to write code in that button event. So can u please share the code into that event so that i can resolve the issue asap.
ZurdoDev 29-Dec-15 9:10am    
No, no one is going to give you all the code. Where exactly are you stuck?
Nathan Minier 29-Dec-15 7:51am    
Without any context (such as the work you've already done) there's not terribly much anyone can do to help.

I can only suggest that you look at using OpenXML to parse it, and insert the parsed data as appropriate.
https://msdn.microsoft.com/en-us/library/office/gg575571.aspx

1 solution

This Link[^] will help you to get all the sheets from the excel and convert to DataSet.
this Link[^]. will help you in inserting values in database.

Please google before asking question.
 
Share this answer
 

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