2013年7月24日
摘要: ScriptManager.RegisterStartupScript方法如果页面中不用Ajax,cs中运行某段js代码方式可以是: Page.ClientScript.RegisterStartupScript(Page.GetType(), "", "");如果页面中使用了Ajax ,则上述代码即使执行也无效果。对这种情况我们通常采用: ScriptManager.RegisterStartupScript(this.Button1, this.GetType(), "alertScript", "window.open 阅读全文
posted @ 2013-07-24 07:33 王玉涛 阅读(16734) 评论(0) 推荐(0) 编辑