1 StringBuilder xml = new StringBuilder();
2 xml.Append("<user>");
3 xml.Append("<qq>" + qq + "</qq>");
4 xml.Append("<religion>" + religion + "</religion>");
5 xml.Append("<blood>" + blood + "</blood>");
6 xml.Append("<aboutme>" + aboutme + "</aboutme>");
7 xml.Append("</user>");
8 users.Xml = xml.ToString();
上面的代码的第8行在执行之后会得到一个被截取的字符串,剩下的大概有16个字符.2 xml.Append("<user>");
3 xml.Append("<qq>" + qq + "</qq>");
4 xml.Append("<religion>" + religion + "</religion>");
5 xml.Append("<blood>" + blood + "</blood>");
6 xml.Append("<aboutme>" + aboutme + "</aboutme>");
7 xml.Append("</user>");
8 users.Xml = xml.ToString();
按照下面的代码写,是正常的.为什么?传说中的BUG?
users.Xml = "<user><qq>" + qq + "</qq><religion>" + religion + "</religion><blood>" + blood + "</blood><aboutme>" + aboutme + "</aboutme></user>";
执行环境:ASP.NET 2.0,WIN2003