Click here to Skip to main content
16,010,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I am using VS 2005,asp.net,c#
I have an excel file that has 3 columns.
first row should be the column names.
How to check whether the first ROW OF EXCEL contains column names or not IN WEB APPLICATION?

Thanks in advance
George
Posted

1 solution

If the excel document originates on the client, then you will need to upload the file to the server and then process the file manually to check.

This CP article is quite old, but may provide some insight as to how this works: Opening and Navigating Excel with C#[^]

Another good tutorial: http://csharp.net-informations.com/excel/csharp-open-excel.htm[^]

And another one: http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/b6e8a28c-6760-4e86-a1aa-e2ce9ec36380[^]
 
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