I have set up a page with a link to a file to download, that will prompt user to open, save or cancel rather than open the xls in browser like this:
VB Code:
Dim VirtualPath As String = Request.ServerVariables("SERVER_NAME").ToString Dim file As String = Request.QueryString("href") Dim filepath As String = "http://" & VirtualPath & file Dim filename As String = System.IO.Path.GetFileName(filepath) Response.ContentType = "application/x-msdownload" lblHref.Text = ("<a href=" & filename & ">download</a>")
is there a way to open the save as box straight away without clicking save?




Reply With Quote