There is a function which is used to write ADO .Net DataTable into the text file and then download that file. Pass the datatable as an argument to this function.
Read this post on technisher.blogspot.com