Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save As Code?

Status
Not open for further replies.

MnM

Programmer
Nov 1, 2000
47
US
I do not know if this should be in the ASP forum or HTML, so I tried here first. Is there any code that will "Save As" in Internet Explorer instead of physically going File..Save As?
 
Use JScript, but you will get prompted before saving. JScript has same syntax as ASP FileSystemObject

<script language=&quot;JScript&quot;>

function saveAs(){
var fso = new activeXObject(&quot;Scripting.FileSystemObject);
fso.createFile(&quot;C:\\Temp\blabla.txt&quot;,false)
...
}
etc ;-)
 
There is no way to do it without a prompt? What I'm doing is saving an ASP page to an HTML when the ASP page is first viewed then after that it will redirect to the HTML. I want all this to happen in the background so the user can't tell the difference. I've tried using ASPTear but can't get it to work.....it just loads in the browser forever when I try to view the page. Anyone know about ASPTear or any other ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top