input button 不能在后台用Enabled

<input type="button" value="上传" class="uploadButton"  runat="server" id ="aaa"/>

 aaa.Enabled = false;

报错

错误 29 “System.Web.UI.HtmlControls.HtmlInputButton”不包含“Enabled”的定义,并且找不到可接受类型为“System.Web.UI.HtmlControls.HtmlInputButton”的第一个参数的扩展方法“Enabled”(是否缺少 using 指令或程序集引用?) 

可以在JS 

<input type="button" value="上传" class="uploadButton"  />

 $(".uploadButton").attr("disabled", true);

原文地址:https://www.cnblogs.com/suxiaBlogs/p/7205863.html