dynamic creation of custom buttons on toolbar?

Last post 09-14-2005, 11:51 PM by anbaz. 0 replies.
Sort Posts: Previous Next
  •  09-14-2005, 11:51 PM 10582

    dynamic creation of custom buttons on toolbar?

    Hi,
     
    I created one custom button on toolbar using the following code
     
    ---------------------------------------------------------------------------------------------

    'get the pos after the Zoom

    Dim pos AsInteger

    pos = Editor1.ToolControls.IndexOf(

    "Zoom") + 2

    Dim ctrl As System.Web.UI.WebControls.WebControl

    ctrl = Editor1.CreateCommandButton(

    "MyButton", "text.gif", "Insert My Button")

    'add this custom button into the editor
    Editor1.InsertToolControl(pos,
    "MyButton", ctrl)
    ----------------------------------------------------------------------------------------------------------------
     
    can i able to create the custom button dynamically?  i  mean if i give 5 then can i able to create 5 custom buttons like MyButton1 and MyButton2 and MyButton 3 etc...
     
     if yes can i have asp.net coding idea?
     
    regards,
    anbaz.
View as RSS news feed in XML