1
的內容部署後執行JavaScript代碼我有一個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')");