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個字符.
按照下面的代碼寫,是正常的.為什麼?傳說中的BUG?
users.XML = "<user><qq>" + qq + "</QQ><religion>" + religion + "</religion><blood>" + blood + "</blood><aboutme>" + aboutme + "</aboutme></user>";
執行環境:ASP.Net 2.0,WIN2003
http://www.cnblogs.com/waitu/archive/2006/08/31/491172.Html