Hello again, Experts.
The code below works as far as opening a file.
However, we would like to force the user to download the file by presenting saveAs.
Again, the code below provides the Save button but also provides Open button and we don't the user to have the option of opening the file.
What can I change in the code below to make this happen?
Thanks a lot as always.
<% @ webhandler language="C#" class="fileDownload" %>
using System.IO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;
using System.Text;
using System.Drawing;
public class fileDownload : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
// You should validate query string here to make sure
// it contains necessary information
if (context.Request.QueryString ...
Go to the complete details ...