Oct 4th, 2017, 02:07 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Missing a MIME entry on downloading a TEXT file?
Help
This code worked fine on my clients 2003 server for simply downloading a TEXT file
Response.Clear()
Response.ContentType = "text/plain"
Response.AppendHeader("Content-Disposition", String.Format("attachment;filename={0}", %Trim(savename)))
Try
Response.TransmitFile(thePath)
Catch e1 System.Exception
Message = e1.ToString()
ltlAlert.text = "alert('" + Message + "')"
leavesr
EndTry
Response.End()
However -- they are going to a 2008 server and it no longer functions. What it downloads is the HTML of the page where the download button it. Please see attached.
What am I missing in the 2008 IIS configuration? A mime type??
thanks
gollnick
Attached Files
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width