.net 中 varchar 类型中处理 换行 ,空格



.net  中  varchar 类型中处理  换行 ,空格


 

if(tempcontent=="")
                
{
                    tempcontent
="";
                }

                
else
                
{
                    tempcontent
=tempcontent.Replace (((char)(10)).ToString (),"<br>");
                    tempcontent
=tempcontent.Replace (((char)(32)).ToString (),"&nbsp;");
                    
                }

                

posted on 2006-07-09 17:22  gwazy  阅读(452)  评论(0编辑  收藏  举报

导航