I followed the information in a previous thread, but i'm having
problems.
I have a couple dropdownlists and a submit button on my form. The user
selects choices from the lists and clicks the submit button. The app
then places the data requested into a string variable.
I want to send this data out to the client and have the save dialog
prompt him to save it as a file. Here's the code.
' Variable csvOut is a string that contains my data.
With Response
.ContentType = "text/csv"
.AddHeader("content-disposition", "attachment;
filename=NetopImport.txt")
.Write(csvOut)
End With
1. When the save dialog appears on the client, if I click "Save" then
it saves the file. I open the file to find my data at the top, but then
the page source follows that.
2. If I click "Open" on the save dialog, the save dialog appears a 2nd
time and I click open again. Notepad opens and I see my data followed by
the page source.
Any help is appreciated. Thanks!
*** Sent via Developersdex http://www.developersdex.com ***