我需要從一個LinkButton這是一個GridView內的更新面板調用從一個UpdatePanel內的「window.open」
我把這個代碼在網格視圖的RowCommand
Dim script As String = "window.open('PopupPage.aspx, 'CommentsView', 'top=150,left=100,menubar=no,width=780,height=400,toolbar=no,resizable=no,scrollbars=yes');"
ScriptManager.RegisterClientScriptBlock(Me.Page, Me.GetType, Guid.NewGuid().ToString(), script, True)
內打開一個彈出窗口
但它不會打開彈出窗口,也不會出現錯誤,我該如何解決這個問題?
在javascript代碼中缺少撇號(')會導致問題...對不起... – Nalaka526