asp.net里为什么运行后textbox里的文本就只有一行
Application.Lock();
Application["content"] = Session["name"] + "说:" + txtWord.Text;
Application.UnLock();
string shuo="";
shuo = Application["content"].ToString() +"\r\n" ;
txtTalk.Text += shuo;
------解决方案--------------------
你的TextBox是 TextMode="MultiLine"的吗
String s = Application["content"].ToString();
Application["content"] = s + Session["name"] + "说:" + txtWord.Text;
------解决方案--------------------
String s = Application["content"].ToString();
Application["content"] = s + Session["name"] + "说:" + txtWord.Text;