Solved

extract the data from excel using ASP.net

Posted on 2003-11-27
4
154 Views
Last Modified: 2010-04-06
My excel file in Sheet 1 has two columns, B1 (Name) & C1 (Description).
And it will consists of many records under B1 & C1.

eg
Name     Description
John       - good
Amy       - excellent
tom        - bad

How do i retrieve data from xls file and I want the data to be displayed in the .aspx file format.

I would be grateful if you could show me how to code as i have just started using .Net.

Thanks in advance
0
Comment
Question by:saloh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 175 total points
ID: 9839011
Here is the answer
http://support.microsoft.com/default.aspx?scid=kb;EN-US;316934
There are a lot of samples

B..G
0
 
LVL 35

Expert Comment

by:YZlat
ID: 9844549
you can display your data using datagrid. first place a datagrid control on your page:

<asp:datagrid id="grid1" runat="server" />


then in Page_Load procedure declare data set and read xml file data into a data set :

Dim ds as New DataSet()
ds.ReadXml(Server.MapPath("myfile.xml"))

then display your code in your datagrid:

grid1.DataSource = myDataSet
grid1.DataBind()
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question