B
bbdobuddy
Hi,
I have a callback that is being called in which I need to create a csv file
that the user can download.
I have the string created correctly but the download prompt dialog box is
not appearing
Here is the last piece of code that should do the download
strFileName = Session("SourceLayer").ToString().Replace(" ",
"_") + DateTime.Now.Year.ToString() + month + day + ".csv"
Response.AddHeader("Content-disposition", "attachment;
filename=" + strFileName)
Response.ContentType = "text/plain"
Response.Write(csvText)
Response.Flush()
Response.End()
Any help would be appreciated
I have a callback that is being called in which I need to create a csv file
that the user can download.
I have the string created correctly but the download prompt dialog box is
not appearing
Here is the last piece of code that should do the download
strFileName = Session("SourceLayer").ToString().Replace(" ",
"_") + DateTime.Now.Year.ToString() + month + day + ".csv"
Response.AddHeader("Content-disposition", "attachment;
filename=" + strFileName)
Response.ContentType = "text/plain"
Response.Write(csvText)
Response.Flush()
Response.End()
Any help would be appreciated