3 回答

TA貢獻1790條經驗 獲得超9個贊
ClientScript.RegisterStartupScript(typeof(Page), "onclick", "<script language=javascript>window.open('../Print.aspx','PrintMe','height=700px,width=700px,scrollbars=1');</script>");
您的錯誤---無法計算表達式,因為代碼是 優化
注意:- 我認為...您收到錯誤只是因為頁面沒有以正確的方式重定向...在目的地
string url="";// In this Line you have to add url in proper way ...so you can easliy redirect
string dim = "toolbar=0,fullscreen=1,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,maximize=0,height=1000px";
ScriptManager.RegisterStartupScript(this.Page, this.GetType(), Guid.NewGuid().ToString().Trim(), "window.open('" + url + "', 'Popup', '" + dim + "');", true);
- 3 回答
- 0 關注
- 236 瀏覽
添加回答
舉報