2009-06-11 74 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));