clientscript.RegisterClientScr ... [英] clientscript.RegisterClientScr...
本文介绍了clientscript.RegisterClientScr ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
clientscript.RegisterClientScriptBlock在UpdatePanel中不起作用
clientscript.RegisterClientScriptBlock doesnot work in UpdatePanel
推荐答案
尝试此操作
ScriptManager.RegisterClientScriptBlock
Try this
ScriptManager.RegisterClientScriptBlock
ScriptManager.RegisterClientScriptBlock(this.up1, this.up1.GetType(), "page", "window.open('UserInfo.aspx?Status=A','_blank','toolbar=no,menubar=no,scrollbars=yes,height=500,width=650,left=200,top=10');", true);
这里的up1是updatepanel ID
Here up1 is updatepanel ID
当页面中存在脚本管理器时,您需要使用ScriptManager.RegisterClientScriptBlock
.
You need to use ScriptManager.RegisterClientScriptBlock
when scriptmanager is present in the page.
这篇关于clientscript.RegisterClientScr ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文