2009-06-11 104 views
0

我想從可愛的編輯器輸出呈現xhtml以在我的頁面中顯示富文本。我正在嘗試,但它似乎並沒有爲我工作。無法將xhtml呈現到頁面

//ce_Document is my instance of cute editor 
public void btn_SaveMessage_Click(object sender, EventArgs e) 
{ 
    XhtmlTextWriter xtw = new XhtmlTextWriter(System.IO.TextWriter.Null); 
    xtw.Write(ce_Document.XHTML); 
} 

回答

0

你好像直接渲染文本到回收站(TextWriter.Null)

您可以寫信給您產生響應的輸出流。試試這個(不知道它是否編譯)

XhtmlTextWriter xtw = XhtmlTextWriter(new TextWriter(Response.OutputStream));