Re: How to add a button to the toolbar

  •  09-26-2005, 1:32 PM

    Re: How to add a button to the toolbar

    If anybody is interested here's the code that worked for me.  I now have one other problem.  I need to figure out how to make the button not postback the page:
     

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

    Button2.Text = ":: Get Record from DB ::"
    Button2.Attributes.Add("postback", "false")
    Button2.Attributes.Add("type", "btn")
    Button2.Attributes.Add("onclick", "CheckBrowserType(document.getElementById('CE_Editor1_ID_Frame'));")Button2.CommandName = "GetDB"
    Editor1.AddToolbarSeparator()
    Editor1.AddToolbarGroupStart()
    Editor1.AddToolControl("GetBIR", Button2)
    Editor1.AddToolbarGroupEnd()
View Complete Thread