plain text file in aspx
From: Saverio Tedeschi (tesis_at_tesis.org)
Date: 04/17/04
- Next message: Andreas: "Changed Authentication Settings after applying latest patches"
- Previous message: sudhee: "RE: a Weird error message on an Intranet webserver"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 17 Apr 2004 04:27:22 -0700
Hi all gurus,
forgive me for this stupid question. Even if I'm sure it's treated on
some thread, I was not able to find it.
I've the need to generate a plain text file in MS ASP.NET (it's
generated, of course) and to transfer it in A web page after the request
button is pressed. I was able to generate the file (myExportFile) on the
server, as told, and then issuing the instructions:
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "text/plain"
Response.WriteFile(myExportFile)
Response.Flush()
Response.Close()
I should be able to see it in my page. However, all I have is a blank
page. If I change MIME type to "text/html" I obtain a file
unintelligible, with no CR. What is the correct MIME type? Where can I
find a list of all correct MIME types? Can you pls point me to the right
direction? TIA
from tesis-Italy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Andreas: "Changed Authentication Settings after applying latest patches"
- Previous message: sudhee: "RE: a Weird error message on an Intranet webserver"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|