我在csv文件的内容处理后执行javascript代码时遇到问题。我想知道我做错了什么,解决方案是什么。我的代码就像这样
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("content-disposition", "attachment;filename=" + Path.GetFileName(filePath));
Response.WriteFile(filePath);
Response.Flush();
//below line is not executing
ClientScript.RegisterStartupScript(typeof(Report), "asdfs", "alert('test')");