How to display the cute editor in code without registering them as a server control

Last post 07-27-2006, 12:12 AM by scheineden. 1 replies.
Sort Posts: Previous Next
  •  07-27-2006, 12:09 AM 21293

    How to display the cute editor in code without registering them as a server control

    Dim SB As New System.Text.StringBuilder

    Dim SW As New StringWriter(SB)

    Dim htmlTW As New HtmlTextWriter(SW)

    Dim re As New CuteEditor.Editor

    re.ID = "editor"
     

    re.RenderBeginTag(htmlTW)

    re.RenderControl(htmlTW)

    re.RenderEndTag(htmlTW)

    Response.Write(SB.ToString())   
     
    Code above only succesfully displaying a part of a table and textarea
    but still missing the divtool bar and iframe and its all configurations.
     
    I just wonder if some one can give an advise. I think there should be a  way to display the cute editor, as all the methods are provided by the dll.
     
     
  •  07-27-2006, 12:12 AM 21294 in reply to 21293

    Re: How to display the cute editor in code without registering them as a server control

    Response.Write change to label1.text =  SB.ToString()
    Note the label1.text is a control object
View as RSS news feed in XML