2011-04-26 60 views
0

我在.cs文件中有這個腳本,它在Firefox中不起作用。Page.RegisterClientScriptBlock不能在FF中工作

Page.RegisterClientScriptBlock(
    "Excel", 
    "<script language='javascript'>window.open('" + strFile + "','_blank', 'height=700, resizable=1, menubar=yes',false)</script>" 
); 

回答

1

嘗試以下操作:

ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Exel", 
     "FunctionName('" + paramter1Name + "','" + parameter2Name + "');", true); 
相關問題