That is default behavior for Internet Explorer. To display a text file. You could zip it on the server side so when they click the link it asks them to download the zip file.
 
Or if I actually answer your origional post::::
You could add your own mime type for your .ldif. If the browser does not recognize it it will ask to download the file. Do it on the HTTP Headers tab.
 
Add the mime type
 
extension - ldif
Content type (MIME): x-ldif
 
 
 
Kevin Bilbee
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Doug Anderson
Sent: Wednesday, February 04, 2004 11:25 AM
To: [EMAIL PROTECTED]
Subject: Re: [Declude.JunkMail] Off topic - iis, web servers and txt files

That's what I'm trying to get away from. Actually have it pop up to open or download. my users have problems understanding right click.
Plus I'm rewriting it so that have to enter username and password to get to the link.
----- Original Message -----
Sent: Wednesday, February 04, 2004 1:16 PM
Subject: RE: [Declude.JunkMail] Off topic - iis, web servers and txt files

In internet explorer right click your link and choose "Save Target As"
 
Kevin Bilbee
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Doug Anderson
Sent: Wednesday, February 04, 2004 11:06 AM
To: [EMAIL PROTECTED]
Subject: [Declude.JunkMail] Off topic - iis, web servers and txt files

Ok, I'm running IIS 5.0 on my imail server. I've written a program to read the ldap and create a ldif file.
I put the ldif file (xxx.ldif) in a sub directory on the web server and when I put a link to it, it displays it directly in the browser.
I want it to download, not display as text.
 
Any ideas on how to config IIS to make it download?
 
P.S. Once I get this program fully functional I'll put it out on my personal web site for download if anyone wants it. It's a console app made with .net that will create: csv, ldif, alias, or list-lst/txt files from the ldap.

Reply via email to