this.Page.ClientScript.RegisterClientScriptBlock 使用时失效的原因

1、aspx页中没有<form runat="server">

2、  this.Page.ClientScript.RegisterClientScriptBlock(),后面加了response.end()

 

3、this.Page.ClientScript.RegisterClientScriptBlock(this.gettype(),"a","alert('it's not allow!')") alert中有三个单引号

posted @ 2009-12-11 15:52  tangself  阅读(622)  评论(0编辑  收藏  举报