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

原文地址:https://www.cnblogs.com/tangself/p/1621996.html