Default.aspx内容`
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
学生列表:<br/>
<asp:ListBox ID="ListBox1" runat="server" Height="200px" Width="200px"
Font-Size="Small" onselectedindexchanged="ListBox1_SelectedIndexChanged"
AutoPostBack="True"></asp:ListBox>
<br />
<asp:Label ID="Label1" runat="server" Text="" ForeColor="Red"></asp:Label>
</div>
</form>
</body>
</html>
向ListBox1控件绑定数据
public partial class _Default : System.Web.UI.Page
{
protected void