我需要在aspx里面做一个导出文件保存的功能。
要求这个activex能够弹出对话框选择保存目录,然后能将需要的数据保存到目录中

解决方案 »

  1.   

    补充一下,最好能有使用说明当然不用activex就能做出来就更好了
      

  2.   

    用WindowShowDialog就可以了啊。。
      

  3.   

    aspx里面做一个导出文件保存的功能try
                {
                    string FullFileName = Server.MapPath(FileName);  //FileName--要下载的文件名
                    FileInfo DownloadFile = new FileInfo(FullFileName);
                    if (DownloadFile.Exists)
                    {
                        Response.Clear();
                        Response.ClearHeaders();
                        Response.Buffer = false;
                        Response.ContentType = "application/octet-stream";
                        Response.AppendHeader("Content-Disposition", "attachment;filename="
                        + HttpUtility.UrlEncode(DownloadFile.FullName, System.Text.Encoding.ASCII));                    Response.AppendHeader("Content-Length", DownloadFile.Length.ToString());
                        Response.WriteFile(DownloadFile.FullName);
                        Response.Flush();                    Response.End();
                    }
                    else
                    {
                        //文件不存在
                    }
                }
                catch
                {
                    //文件不存在
                }
      

  4.   

    ASP.NET多文件批量打包下载