I have run the desktop example with control sets. It works as expected.
I tried to create a web equivalent of this in new project.
I see the following error trying to compile the code
WebPage1.ControlCountPopup.SelectionChanged, line 20
The constructor of this class is protected, and can only be called from within this class
newLabel = New ButtonLabel
I see similar errors on each of the control sets used. Can some one help me get something like this working on web.
I don’t necessarily need controls sets, although that would be preferred. What I need is to be able to dynamically create controls that have added events/methods in them. The examples for dynamically created controls on web work as long as I am using the base control
lbl = new WebLabel
However, if I subclass this to Label1
lbl = new Label1
also gives me the above error. Again works fine on desktop
My guess is that the controlset is new in Web and is not working the same as Desktop.
You can file an Issue to see if they can match the behavior to Desktop.
I’m sorry I can’t help. I don’t have much experience with dynamic controls.
If something is different than Desktop, please create an Issue with the Desktop and Web samples.
That way @Ricardo_Cruz can review and fix what is needed (Web and/or Documentation).