so dynamic elements have to be added to the page and not the master page? I suppose they could be added using the template editor instead then?
are there any plans to support this? I would much rather add the controls directly to the master page... the way I've acheived this is by dynamically adding them to the form:
|protected void Page_Load(object sender, EventArgs e) |
| if (!IsEditingPage()) siteForm.Controls.Add(Page.LoadControl("~/AjaxControl.ascx"); |
where IsEditingPage is a method to determine if I'm in the admin editor, AjaxControl.ascx is the control I want to show on every master page and siteForm is the form tag (with runat="server")...
this is clumsy for two reasons: I have more than one master page, and this control needs to be on all of them... and 2) this should be a property of the control, not the master page, shouldn't it? I tried to put the same logic (check for edit mode, cancel load) various ways inside the usercontrol like overriding render, clearing the child controls, making the ajax control invisible and disabling it. all of these methods give me the "Cannot unregister UpdatePanel"
by the way the AjaxControl.ascx is simply a control with a radtooltipmanager on it. I want to be able to display a universal tooltip (like the Feedback links you see on some websites where it's on the corner of every page) so that I can show announcements to all users no matter what page they are on....
so what do you think the best thing to do here is?