Tag Info

New answers tagged

0

You could try to stick with the AdditionalPageHead DelegateControl and add something like this to your ASCX WebControl: <script runat="server"> protected override void OnLoad(EventArgs e) { base.OnLoad(e); Control formControl = Page.Form; LiteralControl literalControl = new LiteralControl(); ...


2

Your user control needs to target a delegate control placed in the page body not AdditionalPageHead. AdditionalPageHead targets the html head element and is used for adding additional things to the head, like css and javascript files. A delegate control in the body is the appropriate place for an asp:button to live. So within the masterpage, you would ...



Top 50 recent answers are included