Results 1 to 3 of 3

Thread: [RESOLVED] Missing a MIME entry on downloading a TEXT file?

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Resolved [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 Attached Files
    William E Gollnick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width