2012-10-24 69 views
0

我想中檢索拉上了以下內容:asp.net C#顯示HTML渲染

<table border="0" cellpadding="2" cellspacing="7" style="vertical-align:top;"> 
    <tr> 
    <td width="80" align="center" valign="top"><font style="font-size:85%;font-family:arial,sans-serif"></font></td> 
    <td valign="top" class="j"> 
     <font style="font-size:85%;font-family:arial,sans-serif"><br /> 
     <div style="padding-top:0.8em;"> 
      <img alt="" height="1" width="1" /> 
     </div> 
     <div class="lh"> 
      <a href="http://news.google.com/news/url?sa=t&amp;fd=R&amp;usg=AFQjCNEjddVUpIXf528-P5S0D0z5A0_QjQ&amp;url=http://www.daytondailynews.com/news/news/local/letter-points-to-plumbing-in-2011-legionnaires-out/nSmCp/"> 
     <b>Letter points to plumbing in 2011 <b>Legionnaires</b>&#39; outbreak at hospital</b></a><br /><font size="-1"> 
     <b><font color="#6f6f6f">Dayton Daily News</font></b></font><br /> 
     <font size="-1">A letter entered into court records identifies for the first time several factors that may have caused an outbreak of <b>Legionnaire&#39;s disease</b> in Miami Valley Hospital&#39;s new 12-story patient tower shortly after it opened in late 2010. The outbreak, at the <b>...</b></font><br /><font size="-1" class="p"></font><br /> 
     <font class="p" size="-1"><a class="p" href="http://news.google.com/news/more?ncl=dRROval94f0jKyM&amp;ned=us"><nobr><b></b></nobr></a></font></div></font> 
    </td> 
    </tr> 
</table> 

這是HTML格式的我的.aspx頁面上。

我做了以下內容:

<%# XPath("description").ToString()%> 

,但它沒有顯示我的HTML渲染。我喜歡將它展示給我轉換成HTML。 由於描述已經在HTML中,爲什麼它沒有顯示給我?

+1

我不認爲任何人有你在說什麼線索。 – Jason

回答