你直接把string赋值给一个System.Web.UI.WebControls.TextBox对象了,假设你定义的TextBox的ID是txtMyTextBox,对该控件赋值时要这样写 txtMyTextBox.Text="你好"; 我估计你写成了 txtMyTextBox="你好";