How to read the column names of an Excel sheet using ASP.Net?

I am trying to read column names from excel using ASP.Net. Any help?

+2


a source to share


1 answer


Use a data reader and provide a column name

Example:



col1 = dr["mycolumnname"].ToString();

      

"mycolumnname" will be the column name of your excel sheet

0


a source







All Articles