Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 19th, 2008, 02:43 PM
Registered User
 
Join Date: Sep 2008
Location: j, f, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataSet export to .csv file

Is there an easy way to export a data set to a .csv file or do I have to map each element? I read something like this:


Code:
<pnwc:ExportButton 
id="btnExcel" 
runat="server" 
Separator="TAB" 
Text="Export to Excel" 
FileNameToExport="Books.xls" BackColor="#E0E0E0">
</pnwc:ExportButton>
but it tells me that the tag is invalid.

  #2 (permalink)  
Old September 19th, 2008, 05:13 PM
jminatel's Avatar
Wrox Staff
Points: 17,906, Level: 58
Points: 17,906, Level: 58 Points: 17,906, Level: 58 Points: 17,906, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
Default

Did you install the "One-click Excel/CSV export button control" server control that goes with the example syntax:
http://www.asp.net/Community/Control...tem.aspx?i=813

There's a little more explanation of it over at code project:
http://www.codeproject.com/KB/custom...rt_button.aspx

Jim Minatel
Acquisitions Director
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Wrox online library: http://wrox.books24x7.com
  #3 (permalink)  
Old September 22nd, 2008, 07:19 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thank you. When I click on the 1st link and try downloading the source, it tells me that page is not found.

  #4 (permalink)  
Old September 22nd, 2008, 07:22 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: West Palm Beach, Florida, USA.
Posts: 205
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Disregard my last post. Got it. Thank you again.



Similar Threads
Thread Thread Starter Forum Replies Last Post
Export to Excel as .csv file from JSP naheedv Reporting Services 3 November 30th, 2006 08:04 AM
index lost when export to csv file chacquard Access VBA 1 October 10th, 2006 01:57 PM
How To Export a specific Excel Sheet as a csv file mrjits Excel VBA 5 August 1st, 2006 03:04 PM
Export To .csv File paul31Hampshire Access VBA 18 June 26th, 2006 11:30 AM
Export data in to csv file from asp.netpage madhusrp ASP.NET 1.0 and 1.1 Professional 1 June 9th, 2006 09:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.