發(fā)布時間:2020-08-20 06:23 作者:獨(dú)孤劍 閱讀:1177
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="DemoWebForm.WebForm1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript"> window.onload = function () { // 設(shè)置按鈕不可用 document.getElementById('<%=btnLogin.ClientID %>').disabled = true; } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:button runat="server" ID="btnLogin" text="登錄" /> </div> </form> </body> </html>
微信打賞, 微信掃一掃
支付寶打賞, 支付寶掃一掃
如果文章對您有幫助,歡迎給作者打賞