Registered Custom button in .config file

  •  03-07-2006, 12:45 PM

    Registered Custom button in .config file

    i am haveing problems with registering a custom button and then putting the button in the .config file. 
     
    The button works with the templateitemlist but for reuseablity purposes I would like to put it in the .config file useing configurationpath. 
     
    here is the html

     <P><CE:EDITOR id="Editor1" runat="server" Height="384px" EditorWysiwygModeCss="../example.css"
                                                    configurationPath="C:\Inetpub\wwwroot\WebApplication2\myconfig.config"  Width="890px"></CE:EDITOR></P>
                                        <P>&nbsp;</P>

     

    Here is the excerpt from the .config file

     
    <item type="holder" name="btnadd" />
     
    Here is the excerpt from the vb code

    Private Sub Editor1_Initializing(ByVal sender As System.Object, ByVal e As System.EventArgs)

    If Not Page.IsPostBack Then

    Editor1.Text = "Type Here"

    End If

    Dim btnadd As New System.Web.UI.WebControls.Button

    btnadd.Text = "btnadd"

    btnadd.Style("vertical-align") = "middle"

    btnadd.CommandName = "btnadd"

    AddHandler btnAdd.Click, AddressOf btnAdd_Click

    Editor1.RegisterCustomButton("btnadd", btnadd)

    End Sub
     
    Does any body know how to get this to work
View Complete Thread