这个问题我也发现很久了,不仅仅是左边帧,整个页面里的javascrip都不行了。我还没找到能回答这个问题的人呢。

解决方案 »

  1.   

    代码是这个样子的,大家帮忙看看~Response.ClearContent();
    Response.Clear();
    //文件流输出
    Response.AppendHeader("Content-Disposition", "attachment;filename="+this._OutFileName);
    Response.ContentType = "application/x-msaccess";
    Response.BinaryWrite(Buffer);
    //结束文件流输出
    Response.End();
      

  2.   

    状态栏:"!已完毕,但网页上有错误"的JavaScript错误.点击查看错误:
    行  :1
    字符:1
    错误:拒绝访问.
    代码:0
    URL:http://localhost/......
      

  3.   

    javascript错误,就应该贴javascript代码出来呀。
    不能让人家帮你“猜”错误呀。
      

  4.   

    我不是这个意思,就是说,我执行了下载导出文件的操作之后,凡是页面上的JavaScript代码都不能执行.只要不执行下载导出操作,原先的JavaScript代码是好的,可以执行的.我用alert测试过的.是不是流的问题?
      

  5.   

    我试过确实是这样的,你可以设置在目标页面执行导出文件解决,即加target
      

  6.   

    不是javascript不能执行,是下面这样的语句不能执行啊,报错同楼主;<script>window.parent.frames.item(1).document.location.href='../CSS/Operation.aspx?Link=projectComplete'; </script>
      

  7.   

    我遇到一个问题与大家共享,就是我单击执行JAVASCRIPT时,发现GIF动画不动了
      

  8.   

    新建一个页面,在page_load事件中写:try
    {
    if(!Page.IsPostBack)
    {
    string strFileName ="";
    strFileName = Request.QueryString["FILE_NAME"].ToString();
    strFileName = HttpUtility.UrlEncode(System.Text.Encoding.UTF8.GetBytes(strFileName));
    Response.Clear();
    Response.ContentType = "application/x-msexcel";
    Response.AddHeader("Content-Disposition", "inline; filename="+strFileName);
    System.IO.FileStream MyFileStream =new FileStream(Request.QueryString["REPORT_FILE"].ToString(),System.IO.FileMode.Open,System.IO.FileAccess.Read,System.IO.FileShare.Read);
    long FileSize = MyFileStream.Length;
    byte[] Buffer = new byte[(int)FileSize];
    MyFileStream.Read(Buffer, 0, (int)FileSize);
    MyFileStream.Close();
    Response.BinaryWrite(Buffer);
    }
    }
    catch(Exception exp)
    {
    Response.Write("导出数据错误!");
    }
    在前面一个页面完成数据填入工作并调用上面页面:string  Buffer = this.theucExportExcelLogic.SetDataToExcel(this._ExportData, this._ExportHeaderData, strFileName,this._HeaderType, this._OnlyVisible);
    Response.Clear();
    Response.Redirect("../../ExportExcel/ShowReport.aspx?REPORT_FILE=" + Buffer+"&FIlE_NAME="+this._OutFileName ,true); 这样将不会影响其他页面的javascript执行