G
Guest
Hi All,
I am using the below code to open a .TXT file.
I am getting a dialog box to open/save the file.
I am able to save the file properly.
But when i select OPEN option to open file directly, the get the ERROR msg
saying "cannot find C:\documents and settings\Temproary Internet
Files\...\Filename.TXT. Do you want to create a new file ??"
How to resolve this problem, am i misssing any setting ??
Response.Buffer = true
Response.clear
'Response.ContentType = "application/octect-stream"
Response.AddHeader "Content-Length", bytesprocessed
Response.AddHeader "content-disposition", "attachment; filename=" &
filename
'Response.AddHeader "content-disposition", "attachment;
filename=MACKCAN200410.doc"
Response.ContentType = "text/plain"
Response.binarywrite leftb(cstr(outstream), bytesprocessed)
Response.flush
Response.end
Thanks
--
http://pathidotnet.blogspot.com
=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
---------------
I am using the below code to open a .TXT file.
I am getting a dialog box to open/save the file.
I am able to save the file properly.
But when i select OPEN option to open file directly, the get the ERROR msg
saying "cannot find C:\documents and settings\Temproary Internet
Files\...\Filename.TXT. Do you want to create a new file ??"
How to resolve this problem, am i misssing any setting ??
Response.Buffer = true
Response.clear
'Response.ContentType = "application/octect-stream"
Response.AddHeader "Content-Length", bytesprocessed
Response.AddHeader "content-disposition", "attachment; filename=" &
filename
'Response.AddHeader "content-disposition", "attachment;
filename=MACKCAN200410.doc"
Response.ContentType = "text/plain"
Response.binarywrite leftb(cstr(outstream), bytesprocessed)
Response.flush
Response.end
Thanks
--
http://pathidotnet.blogspot.com
=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
---------------