pavankumarr 12 Newbie Poster

Hi,

I want to download file(pdf) using save dialog when user clicks a link from Html Page.

There is html page where i used anchor tag to open a PopUp window(aspx form) where user will enter his details

and submit the details which will save in database.After submitting the details save dialog window will open where

user can save the file on his local m/c.

The first part i had completed where user can save the details in datbase.

But after submitting the details I'm not able to open the save dialog or not able to download the from.

Code is given below

Please help me regadring the issue of ownloading or saving the file.

Thanks in Advance
Pavan Kumar R

<head runat="server">
    <title>Untitled Page</title>

    <script type="text/javascipt">
function startDownload()
{
var url='E:files\\sample.pdf'; 
window.open(url,'Download');
}
</script>
</head>


<body>
    <form id="form1" runat="server">
    <script type="text/javascript">
        function openPopup()
        {
            popupwindow=window.open("Form.aspx",'WinName','width=900,height=500,left=200,top=200');
        }
        s=alert("show");
         s1=setTimeout("startDownload()",10000); 

    </script>

     <div>

          <a href="" onclick="openPopup();return true" target="_blank">Click here to view Brochure</a>
    </div>
    </form>
    </body>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.