Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

43 lines
695 B
Plaintext

<%@ Page Language="C#" %>
<html>
<head>
<title>CheckBoxList</title>
</head>
<body>
<script runat="server">
void SelectedIndexChanged (object sender, EventArgs e)
{
label.Text = "Index Has Changed";
}
</script>
<form runat="server">
<p>
No AutoPostBack for me.
<p>
<asp:CheckBoxList id="l2"
RepeatLayout="table" AutoPostBack="false"
OnSelectedIndexChanged="SelectedIndexChanged" runat="server">
<asp:ListItem>One</asp:ListItem>
<asp:ListItem>Two</asp:ListItem>
<asp:ListItem>Three</asp:ListItem>
<asp:ListItem>Five</asp:ListItem>
</asp:CheckBoxList>
<asp:Button id="button1" runat="server" Text="Button" />
<br>
<asp:Label id="label" runat="server" />
</form>
</body>
</html>