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
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