protected void Page_Load(object sender, EventArgs e) { for (int i = 0; i < ListBox1.Items.Count; i++) { Response.Write(ListBox1.Items[i].Text);//循环读取LISTBOX中所有项的值,并输出到页面。 } }