Answered by:
"DynamicControlID must be set" error raised with PopupControlExtender

Question
-
User-2012806367 posted
HI
I am working through the AJAX tool kit and am having an error raised when using the PopupControlExtender. => "DynamicControlID must be set"
I program using VB and code behind and a master page. I followed the demo by Joe Stagner making some minor changes to his code to accomodate the master page.
********************************************************************************
.aspx code
<%@ Page Language="VB" MasterPageFile="Testing.master" AutoEventWireup="false" CodeFile="PopUpControl.aspx.vb" Inherits="_PopUpControl" title="" %><%
@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> ToDo: <asp:TextBox ID="MyTextBox" runat="server" Width="538px"></asp:TextBox> <asp:Panel ID="Panel1" runat="server" CssClass="popupControl"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:RadioButtonList ID="RadioButtonList" runat="server" OnSelectedIndexChanged="RadioButtonList_SelectedIndexChanged" AutoPostBack="true" Width="146px"> <asp:ListItem Text="Scott Guthrie"></asp:ListItem> <asp:ListItem Text="Simon Muzio"></asp:ListItem> <asp:ListItem Text="Brian Goldfarb"></asp:ListItem> <asp:ListItem Text="Joe Stagner"></asp:ListItem> <asp:ListItem Text="Shawn Nandi"></asp:ListItem> </asp:RadioButtonList> </ContentTemplate> </asp:UpdatePanel> </asp:Panel> <cc1:PopupControlExtender ID="PopupControlExtender1" runat="server" TargetControlID="MyTextBox" PopupControlID="Panel1" CommitProperty="value" CommitScript="e.value += ' - SEND A MEETING REQUEST!';" Position="Bottom" DynamicServiceMethod="GetDynamicContent"> </cc1:PopupControlExtender></asp:Content>
*****************************************************************************
.vb code
Imports
AjaxControlToolkit Partial Class _PopUpControlInherits System.Web.UI.PageRadioButtonList.ClearSelection()
End SubEnd
Class*******************************************************************************
I see there is a DynamicControlID property for the PopupControlExtender. Is this required and if so, what would I link it to? If not, what am I missing?
Thanks for any help.
(ps. I have the watermarkextender, autocompleteextender and HoverMenuExtender working OK)
Tuesday, December 4, 2007 6:22 PM
Answers
-
User-2012806367 posted
Hi
Lousy question since no one has answered. I'll rework and try again.
Have a nice day.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, December 7, 2007 8:01 AM
All replies
-
User-2012806367 posted
Hi
Lousy question since no one has answered. I'll rework and try again.
Have a nice day.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, December 7, 2007 8:01 AM -
User-831711305 posted
I bet you clicked on "Add Dynamic Populated page method" in the ModalPopupExtender and then deleted from the .vb file the code it added.
Remove DynamicServiceMethod="GetDynamicContent" from the <cc1:PopupControlExtender...> in the source of your page and the compiler won't complain about a missing DynamicControlID. I think it's just a not-too-helping error message.
Friday, April 11, 2008 7:24 AM -
User-911843391 posted
I bet you clicked on "Add Dynamic Populated page method" in the ModalPopupExtender and then deleted from the .vb file the code it added.
Remove DynamicServiceMethod="GetDynamicContent" from the <cc1:PopupControlExtender...> in the source of your page and the compiler won't complain about a missing DynamicControlID. I think it's just a not-too-helping error message.
Thanks AMJ69
Wednesday, July 7, 2010 6:38 AM -
User1777975913 posted
Great Thread , cleared my doubts :)
Monday, November 25, 2013 2:07 AM