linux-packaging-mono/mcs/class/System.Web/Test/standalone/checkbox/checkbox-disabled-save-state.aspx
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

26 lines
679 B
Plaintext

<!-- bug 49091 -->
<%@ Page language="c#" %>
<html>
<head>
<script runat="server">
private void BtnDisable_Click(object sender, System.EventArgs e)
{
CheckBox1.Enabled = false;
}
private void BtnEnable_Click(object sender, System.EventArgs e)
{
CheckBox1.Enabled = true;
}
</script>
</head>
<body>
<p>Check the checkbox, click disable then enable. The checkbox should stay enabled.</p>
<form runat="server">
<asp:checkbox id="CheckBox1" runat="server" Text="Test" />
<asp:button onclick="BtnDisable_Click" runat="server" Text="Disable" />
<asp:button onclick="BtnEnable_Click" runat="server" Text="Enable" />
</form>
</body>
</html>