ASP 101 - Active Server Pages 101 - Web04
The Place ASP Developers Go!

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates
ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

Script Output:
Name Age
Abe 23
Betty 34
Carol 56
David 24
Edward 16
Floyd 19
Gary 38
Harold 28

ASP HTML Download            FAQ

ASP.NET Version

As bad an idea as this can be, I'm still getting a lot of requests for the ability to use Excel as a data source. Well here you go! Please be aware that while ASP is meant to handle multiple users, Excel is not. That means that you should expect problems if you put this on a server that handles multiple users.

Because of this limitation, I've departed from my standard "all our samples are running on the site" philosophy and while you can download the code, and what you see above was actually produced from a real run of it, it was not produced on the fly.

Like any other data source, you can also change values in the underlying file. These changes will be reflected in the Excel file next time you open it.

For more information see Microsoft's Knowledge Base Article: HOWTO: Query and Update Excel Data Using ADO From ASP. If you're doing this as a method to get data to the users in Excel file format, please consider using this method instead: HOWTO: Use ASP to Query and Display Database Data in Excel. It's much easier on the server as it avoids using Excel altogether.

Oh and I almost forgot... the sample Excel file (13.8 kb) and a zipped version (1.7 kb).


Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers