Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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.

Reply With Quote
  #2 (permalink)  
Old September 19th, 2008, 05:13 PM
jminatel's Avatar
Wrox Staff
Points: 17,869, Level: 58
Points: 17,869, Level: 58 Points: 17,869, Level: 58 Points: 17,869, Level: 58
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,934
Thanks: 63
Thanked 130 Times in 97 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
Reply With Quote
  #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.

Reply With Quote
  #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.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export to Excel as .csv file from JSP naheedv Reporting Services 3 November 30th, 2006 07: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



All times are GMT -4. The time now is 08:50 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.