Cannot create CuteEditor Control using VB

Last post 06-10-2006, 2:27 PM by Beetlecat. 5 replies.
Sort Posts: Previous Next
  •  06-05-2006, 5:59 AM 19793

    Cannot create CuteEditor Control using VB

    Hi, I am trying to add a CuteEditor.NET control to my aspx page, but I want to do it dynamically at runtime.
     
    There used to be a editor.draw() function which would create the control in VB. Is there a similar function in .NET as when I try to create the control using response.write, it does not append all the includes for cuteeditor, and it doesnt show on screen.
     
    Please let me know what should I do.
     
    Thanks
     
    Aon
  •  06-05-2006, 8:32 AM 19805 in reply to 19793

    Re: Cannot create CuteEditor Control using VB

    Aon,
     
    Please check the following example:
     
     
    All the editors in the above datagrid are dynamically created.
     
    >>There used to be a editor.draw() function which would create the control in VB. Is there a similar function in .NET as when I try to create the control using response.write, it does not append all the includes for cuteeditor, and it doesnt show on screen.
     
    There is no "editor.draw() function" in the .NET version. You need to create the Editor control dynamically and added to the page's control collection.
     
     
     
     
     
     
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-05-2006, 11:29 AM 19822 in reply to 19793

    Re: Cannot create CuteEditor Control using VB

    Hi,
     
    What I really want to do is create a CuteEditor in vb and attach it to the page at runtime. but what is happening is that I am also creating the <form> tags at runtime as well. so CuteEditor is not registering.
     
    My Directory Structure is
     
    bin
    CuteSoft_Client
      - CuteEditor
    Temp
      - Default.aspx 
     
    I have attached a test code which gives me an error for "Cuteeditorclientclass is undefined". Please tell me how to fix this error

    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
    <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
      <% 
          Dim editor As New CuteEditor.Editor

          editor = Editor1

          Response.Write("<form id=""form1"" runat=""server"">")
          Response.Write("<div>")
          editor.FilesPath = "../CuteSoft_Client/CuteEditor/"
     %>
            <CE:Editor ID="Editor1" runat="server">
            </CE:Editor>
    <% 
        Response.Write("</div>")
        Response.Write("</form>")
    %>
      
    </body>
    </html>
    Thanks
     
    Aon
  •  06-10-2006, 3:57 AM 19990 in reply to 19805

    Re: Cannot create CuteEditor Control using VB

     Adam wrote:
    Aon,
     
    Please check the following example:
     
     
    All the editors in the above datagrid are dynamically created.
     
    >>There used to be a editor.draw() function which would create the control in VB. Is there a similar function in .NET as when I try to create the control using response.write, it does not append all the includes for cuteeditor, and it doesnt show on screen.
     
    There is no "editor.draw() function" in the .NET version. You need to create the Editor control dynamically and added to the page's control collection.
     
     
     
     
     
     
     
     
     



    That's a fantastic demo and I'd like to try implimenting something similar, but where do I see the sample code?  I've managed to create a dynamic instance of the editor, loaded it with text from an existing page literal, but can't put it back in the literal when I'm done...

    Thanks in advance for any help!
  •  06-10-2006, 1:54 PM 19996 in reply to 19990

    Re: Cannot create CuteEditor Control using VB

    Beetlecat,
     
    The above demo can be found in the download package.
     
    cs/datagrid-example.aspx
    vb/datagrid-example.aspx
     
    Hope it helps.
     
    Let me know if you need any further help.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-10-2006, 2:27 PM 19997 in reply to 19996

    Re: Cannot create CuteEditor Control using VB

    Aha!

    I had completely forgotten the sample files!

    I will return with a question if I have any trouble.

    Thanks again

View as RSS news feed in XML