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中有三个单引号

你可能感兴趣的:(script)