views:

19

answers:

0

I'm familiar with returning a CSV attachment during a postback using something like this:

    Response.Clear()
    Response.ContentType = "text/csv"
    Response.AppendHeader("Content-Disposition", "attachment;filename=Test.csv")
    Response.Write(LoadTextFile(AppPath & "Test.csv"))
    Response.End()

However, is it possible to return an attachment AND an HTML page? The requirement is that the user clicks on an EXPORT button which on post back delivers the CSV (like above) but then refreshes the HTML page saying "Thanks for downloading".

The title of this post could be completely wrong...

Cheers, Rob.