<tr>
    <td><%# mycontent.FieldValue("内容", Container) %></td>
</tr>
显示出来后的内容无段落、无空格、无行距等格式。

解决方案 »

  1.   

    加上pre标签,例子如下:<PRE>
    This text is formatted
       exactly
          as
             it
          is
       typed.
    </PRE>
      

  2.   

    public static string TCode(string Info)
    {
    Info=Info.Replace("&","&amp;");
    Info=Info.Replace("<","&lt;");
    Info=Info.Replace(">","&gt;");
    Info=Info.Replace(" ","&nbsp;");
    Info=Info.Replace("\n","<br>");
    // Info=Info.Replace("'","‘");
    return Info;
    }
      

  3.   

    用控件(比如Literal)显示也可以