I got a master page with a content place holder (called: placeForButtons). In one of my forms a panel (called: uxButtonsPanel) is added as one of its controls . Later when the program is running (after it compiled what it had successfully) I try to add a button( called: uxInteractionButton0) to that panel.
the following error is shown:
Control 'ctl00_placeForButtons_uxInteractionButt… of type 'Button' must be placed inside a form tag with runat=server.
this is the code that gave the error:
Button elButton = new Button();
elButton.Text = "button";
elButton.ID += "uxInteractionButton0";
elButton.Click += On_Click_Button;
uxButtonsPanel.Controls.Add(elButton);
What I'm I missing to add the button?
If I'm missing the tag, how do I add it?