Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

"DynamicControlID must be set" error raised with PopupControlExtender

$
0
0

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

<%@PageLanguage="VB" MasterPageFile="Testing.master" AutoEventWireup="false"CodeFile="PopUpControl.aspx.vb"

    Inherits="_PopUpControl" title="" %>

<%

@RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="cc1" %><asp:ContentID="Content1"ContentPlaceHolderID="ContentPlaceHolder1"Runat="Server">

<asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>ToDo:

<asp:TextBoxID="MyTextBox"runat="server"Width="538px"></asp:TextBox>

  <asp:PanelID="Panel1"runat="server"CssClass="popupControl">

    <asp:UpdatePanelID="UpdatePanel1"runat="server">

      <ContentTemplate>        <asp:RadioButtonListID="RadioButtonList"runat="server"

          OnSelectedIndexChanged="RadioButtonList_SelectedIndexChanged"

          AutoPostBack="true"Width="146px">

            <asp:ListItemText="Scott Guthrie"></asp:ListItem>

            <asp:ListItemText="Simon Muzio"></asp:ListItem>

            <asp:ListItemText="Brian Goldfarb"></asp:ListItem>

            <asp:ListItemText="Joe Stagner"></asp:ListItem>

            <asp:ListItemText="Shawn Nandi"></asp:ListItem>

          </asp:RadioButtonList>        </ContentTemplate>

      </asp:UpdatePanel>

    </asp:Panel>

    <cc1:PopupControlExtenderID="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

AjaxControlToolkitPartialClass _PopUpControlInherits System.Web.UI.Page

 

ProtectedSub RadioButtonList_SelectedIndexChanged(ByVal senderAsObject,ByVal e As System.EventArgs)Handles RadioButtonList.SelectedIndexChanged

  IfNot (String.IsNullOrEmpty(RadioButtonList.SelectedValue))Then      PopupControlExtender.GetProxyForCurrentPopup(Me.Page).Commit(RadioButtonList.SelectedValue)

  EndIf

  RadioButtonList.ClearSelection()

EndSub

End

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 andHoverMenuExtender  working OK)


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>