Connecting Tech Pros Worldwide Help | Site Map

Open Save Dialog box using Virtual Folders

Venkat
Guest
 
Posts: n/a
#1: Jul 20 '05
Hi,

I have an file1.exe file stored at some physical location say
C:\Test\file1.exe.
I created a virtual folder say MyFolder pointing to my physical
folder(C:\Test\).

I wrote this piece of code to access file1.exe using virtual folder.

<@ Language=JavaScript %>
<%
path="HTTP://9.7.1.10/MyFolder/file1.exe";
%>

<html
------
------
<a href="<%=path%>">Myfolder</a>
-----
------
</html>

Now when i click Myfolder i want it to open Open Save dialog box.
Something like "You are downloading the file file1.exe from 9.7.1.10
"Would you like to open the file or download to your computer"
Open Save Cancel MoreInfo.

I guess it usually opens, for me the above dialog box is not opening when i
click Myfolder.

Do i need to make anything special setting during the creation of virtual
folders in IIS,
Custom HTTP headers?

Please help.

Regards
Venkat







ManoDestra
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Open Save Dialog box using Virtual Folders


The dialog box you speak of normally only comes up if the client machine
does not recognise the mime type being passed to it. Not sure how you'll go
about fixing this. Check the section regarding MIME types in your ISM
console.

Peter.

"Venkat" <venkat_kp@yahoo.com> wrote in message
news:1058821251.277258@sj-nntpcache-3...[color=blue]
> Hi,
>
> I have an file1.exe file stored at some physical location say
> C:\Test\file1.exe.
> I created a virtual folder say MyFolder pointing to my physical
> folder(C:\Test\).
>
> I wrote this piece of code to access file1.exe using virtual folder.
>
> <@ Language=JavaScript %>
> <%
> path="HTTP://9.7.1.10/MyFolder/file1.exe";
> %>
>
> <html
> ------
> ------
> <a href="<%=path%>">Myfolder</a>
> -----
> ------
> </html>
>
> Now when i click Myfolder i want it to open Open Save dialog box.
> Something like "You are downloading the file file1.exe from 9.7.1.10
> "Would you like to open the file or download to your computer"
> Open Save Cancel MoreInfo.
>
> I guess it usually opens, for me the above dialog box is not opening when[/color]
i[color=blue]
> click Myfolder.
>
> Do i need to make anything special setting during the creation of virtual
> folders in IIS,
> Custom HTTP headers?
>
> Please help.
>
> Regards
> Venkat
>
>
>
>
>
>
>[/color]


Closed Thread