在InnerText换行,没有机会使用InnerHtml

时间:2013-11-05 14:26:35

标签: c# html asp.net

我在网页中显示XML源代码..

我的代码是

<div id="esdcatalogXml" runat="server"></div>

和C#是:

string xmlSource = HttpUtility.HtmlDecode(ds.Tables[0].Rows[0]["Value"].ToString()) ;
esdcatalogXml.InnerText = xmlSource;

我想在我的网页中逐行显示..但是将所有行放在一行中。

请帮忙

0 个答案:

没有答案