RegisterCustomButton problem

  •  10-18-2004, 7:11 AM

    RegisterCustomButton problem

    I'm starting to develop with CuteEditor for .Net, and I've found a problem with a very simple task, documented in the examples, but that I cannot put to work.

     
    I want to have a custom button in my editor to do some task, I have followed the instructions and I've wrote the next code in the Page_Load event of a aspx page with only one Cute Editor 3.0 for .NET:
     

    'Custom Button

    Dim Image1 As New System.Web.UI.WebControls.Image

    Image1.ID = "Test" 'This ID will be used in template

    Image1.ToolTip = "Test Button"

    Image1.ImageUrl = HttpContext.Current.Request.ApplicationPath + "/btnCopiar.gif"

    Image1.CssClass = "button"

    Image1.Attributes.Add("onclick", "Paste_Html('Editor1','Testing...')")

    Image1.Attributes.Add("type", "btn")

    Editor1.RegisterCustomButton(Image1)
     
    There is no more code in the page, the Image Url is correct, and the page does not raises any error. The Editor shows correctly, but the custom button does not shows anywhere.
     
    I'm using VisualStudio 2003 and .NET Framework 1.1, Spanish version.
     
    Could you help me, please?
     
    Thank you very much.
View Complete Thread