Making a content downloaded... - نوشته شده در (1130 Views)
Average Member
SiSL
مطلب: 671
671
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?
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
You can, I just forget the particulars. I had looked it up a long while back for an old project.
نوشته شده در
نوشته شده در
Support Moderator
Shaggy
مطلب: 6780
6780
Add the following to the start of your file:
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 the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
نوشته شده در
Support Moderator
Shaggy
مطلب: 6780
6780
No worries smile
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.”
 
شما باید یک متن وارد کنید