I have a gridview on my form & i am exporting this in CSV format (file.txt), my code is -
Response.ContentType = "application/x-unknown"
fn = Session("flName") ' File name
Response.AddHeader("Content-Disposition", "attachment; filename=" & fn)
adoStream = CreateObject("ADODB.Str ...
Go to the complete details ...