Dynamically Create/Update Cute Editor at run time

  •  10-10-2005, 11:16 PM

    Dynamically Create/Update Cute Editor at run time

    Hi,

    I want to create the editor dynamically at run time and I have done that. My problem is I can't get/update the content/text from the editor when I created dynamically.  With the standart textbox in VS.NET 2003 I use: request.form(id) to get its value but apparently this doesn't apply to Cute editor.   I also tried page.findcontrol(id) but to no avail.

    The reason I don't want to use the datagrid example is because I have to dynamically create other different controls as well not simply just Cute Editor.

    =========================================================================

    for i as integer = 0 to 5
       Dim tr As New HtmlTableRow

       Dim td As New HtmlTableCell
       Dim ce As New CuteEditor.Editor
       
       ce.ID = i 
       ce.AutoConfigure = CuteEditor.AutoConfigure.Minimal
       ce.Height = Unit.Pixel(200)
       ce.Width = Unit.Pixel(300) 
       
       td.Controls.Add(ce) 
       tr.Cells.Add(td)

        table.rows.insert(i,tr)
    next
     
    ==========================================================================
     
    Any ideas of how to get the content from the editor?
     
    Thanks
     
View Complete Thread