How to create CuteEditor Dynamically in VB

  •  06-14-2006, 12:25 PM

    How to create CuteEditor Dynamically in VB

    Hello,
     
    I have asked this earlier as well.
     
    I am having problems trying to create the CuteEditor.Net control in my vb file. This is what I am trying to do in my vb code of ASP.NET page

    Dim
    Editor1 As New CuteEditor.Editor
    Editor.id =
    "txtProcedure"
    Me.Controls.Add(Editor)
     
    When I try to do this it give me the following error
     
    "The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)."
     
    Please tell me if this is the right way of adding a CuteEditor.Net control to an ASP page, I have checked the datagrid example in your example files. But that example is only assgining a variable to a already created CuteEditor.Net control on the aspx page.
     
     
    What I want to do is create the control in my vb code without creating it in aspx page, just like editor.draw() function used to do in previous asp version of CuteEditor.
     
    Please help
     
    Thanks
     
    Aon
     
     
View Complete Thread