.net 中 varchar 类型中处理 换行 ,空格 if(tempcontent=="") { tempcontent=""; } else { tempcontent=tempcontent.Replace (((char)(10)).ToString (),"<br>"); tempcontent=tempcontent.Replace (((char)(32)).ToString ()," "); } 转载于:https://www.cnblogs.com/gwazy/archive/2006/07/09/446594.html