The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Greetings,
I want to ask a question that bugs my mind for long time...
My ASP file named, "test.asp" is this:
<%
myText = "<strong>Hello World</strong>"
Response.Write myText
%>
Can I make this ASP file act like a fake file like "x.html" and open "Download" dialog without writing this to a text file on server? Basically upload from memory?
I want to ask a question that bugs my mind for long time...
My ASP file named, "test.asp" is this:
<%
myText = "<strong>Hello World</strong>"
Response.Write myText
%>
Can I make this ASP file act like a fake file like "x.html" and open "Download" dialog without writing this to a text file on server? Basically upload from memory?
Sist redigert av
Postet den
You can, I just forget the particulars. I had looked it up a long while back for an old project.
Postet den
I would love to hear if there is a way :)
Postet den
Add the following to the start of your file:
Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Code:
response.contenttype="text/html"
response.addheader "content-disposition","attachment;filename=file.html"
Search is your friend
“I was having a mildly paranoid day, mostly due to thefact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Thank you SOOO MUCH :)
Email Member
Message Member
Post Moderation
Filopplasting
If you're having problems uploading, try choosing a smaller image.
Forhåndsvis post
Send Topic
Loading...