您的位置:首页 > 其它

用户控件无法用ClientScript.RegisterStartupScript

2008-12-10 16:56 351 查看
在前面加上this.Parent.Page.就可以了,如下

this.Parent.Page.ClientScript.RegisterStartupScript(this.GetType(), "abc", "Panel()");
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐