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.