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.