protected void Button2_Click(object sender, EventArgs e) { Massage msg1 = new Massage(); if (TextBoxName.Text == "" || TextBoxName.Text == "点此改名") { msg1.Username = "******"; } else { msg1.Username = TextBoxName.Text; } if (TextBox2.Text != "") { msg1.Content = TextBox2.Text; MsgList.msg.Add(msg1); MsgList.Test(); Refresh(); } TextBox2.Text = null; }