请教数据库中内容显示格式控制问题 <tr> <td><%# mycontent.FieldValue("内容", Container) %></td></tr>显示出来后的内容无段落、无空格、无行距等格式。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 加上pre标签,例子如下:<PRE>This text is formatted exactly as it is typed.</PRE> public static string TCode(string Info) { Info=Info.Replace("&","&"); Info=Info.Replace("<","<"); Info=Info.Replace(">",">"); Info=Info.Replace(" "," "); Info=Info.Replace("\n","<br>"); // Info=Info.Replace("'","‘"); return Info; } 用控件(比如Literal)显示也可以 ASP.NET中怎样用Cookie保存序列化后对象 div问题。大家帮忙 不知道这是不是一个关于活动目录的问题 Response 怎样延迟返回 高手请教:新网互联mydns接口问题 DataGrid控件绑定DropDownList控件的问题 oledb问题~ 我的WEB控件在运行时为什么全部没有显示啊?并且运行时,还出一个警告框? 想用google的进来 Vs.net中不爽的问题? VS2005是不是不支持很多HTML标签? 水晶报表如何取当前页面中的某个值,而非数据库的值。如何传给报表呀?
This text is formatted
exactly
as
it
is
typed.
</PRE>
{
Info=Info.Replace("&","&");
Info=Info.Replace("<","<");
Info=Info.Replace(">",">");
Info=Info.Replace(" "," ");
Info=Info.Replace("\n","<br>");
// Info=Info.Replace("'","‘");
return Info;
}