custom buttons and .config files

Last post 10-21-2005, 7:40 PM by dalmuti360. 1 replies.
Sort Posts: Previous Next
  •  10-21-2005, 5:20 PM 11924

    custom buttons and .config files

     
    How do I add a button programatically so that I can reference it in the .config files. 

    Here is what I have tried so far in the code behind:
     
    Dim ctrl As WebControl = Me.CreateCommandButton("CMSLink", "link.gif", "Insert Hyperlinks")
    ctrl.Attributes("onclick") = "hyperlink(this);"

    and I added this code to the .config file:
    <item type="image" name="CMSLink" imagename="link"/>

    but I get the error:
    "Command 'CMSLink' Is Not Supported Or Implemented"

    I cannot use the code from your sample files since I need the button to appear in different places in each .config file not a specific index location.
     
  •  10-21-2005, 7:40 PM 11929 in reply to 11924

    Re: custom buttons and .config files

    Never mind I figured it out.
View as RSS news feed in XML