以下为引用的内容: Code 然后在注册脚本时我们就可以用 Code public void Alert(string key ,string Msg,UpdatePanel updatePanel) { string js = "Ext.onReady(function() {Ext.MessageBox.alert('提示', '" + Msg + "');})"; scriptManager.RegisterStartupscript(updatePanel, this.GetType(), key, js, true); } |