asp.net中后台给控件添加属性的方法代码

 this.Button1.Attributes.Add("onclick", "return showJSON();");
原文地址:https://www.cnblogs.com/QiuJL/p/4524310.html