Re: How to add a button to the toolbar

  •  09-26-2005, 1:58 PM

    Re: How to add a button to the toolbar

    If you don't want a post back you can do this (note I have to do remote scripting because users cried about the page refresh):
     

    Dim Button2 As New System.Web.UI.HtmlControls.HtmlButton

    Button2.InnerHtml = ":: Get Record from DB ::"

    Button2.Attributes.Add("style", "background : #ffffff;border : 1;border-style : solid;font : Arial, Helvetica, sans-serif;")

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

    Button2.Attributes.Add("onclick", "CheckBrowserType(document.getElementById('CE_Editor1_ID_Frame'));")

    Editor1.AddToolbarSeparator()

    Editor1.AddToolbarGroupStart()

    Editor1.AddToolControl("GetDB", Button2)

    Editor1.AddToolbarGroupEnd()

View Complete Thread