ASP.NET Enabled ความสามารถ

การกำหนดและการใช้งาน

Enabled ความสามารถใช้สำหรับเปิดใช้งานหรือปิดการใช้งานควบคุม

ภาษา

<asp:webcontrol id="id" Enabled=true|false runat="server" />

ตัวอย่าง

ตัวอย่างนี้ปิดทำงานควบคุม button

<html>
<body>
<form runat="server">
<asp:Button id="Button2" Enabled=False Text="Submit" runat="server"/>
</form>
</body>
</html>

ตัวอย่าง

ปิดทำงานควบคุม button