donwload - save/open dialog box

Results 1 to 2 of 2

Thread: donwload - save/open dialog box

  1. #1
    meeta Guest

    Default donwload - save/open dialog box

    I get the filename listing. For browser to open up save/open window. I&#039;m linking these filename to asp page which has code below. It does give save/open window but it saves asp file itself where code below is written. (I&#039;ve reached this far with the help of replies posted to my questions, doing search on ASPFAQ)..<BR><BR>&#060;%@ Language=VBScript %&#062;<BR>&#060;% option explicit %&#062;<BR>&#060;%<BR> Response.buffer = TRUE<BR> Response.ContentType = "application/x-msaccess"<BR><BR> Dim vntStream<BR><BR> Set oMyObject = Server.CreateObject("MyObject.BinRead")<BR><BR> Response.BinaryWrite(vntStream)<BR><BR> Set oMyObject = Nothing<BR><BR> Response.End<BR> %&#062; <BR><BR>Thanks in advance.<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: donwload - save/open dialog box

    1. remove ALL whitepace outside ASP tags. this will get sent as text/html if a flush() gets called (automatically, this can happen)<BR><BR>2. Response.addHeader("content-disposition", "attachment; filename=whatever.extn")<BR><BR><BR>j<BR><BR>

Posting Permissions

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