Javascript 填充控件时的ajaxcontroltoolkit CascadingDropDown调用方法
我的页面中有一个CascadingDropDown控件。我想在填充下拉列表时执行一些jquery操作。根据,有一个称为(填充)的事件用于此目的。 我在我的页面中添加了该代码:Javascript 填充控件时的ajaxcontroltoolkit CascadingDropDown调用方法,javascript,jquery,ajaxcontroltoolkit,Javascript,Jquery,Ajaxcontroltoolkit,我的页面中有一个CascadingDropDown控件。我想在填充下拉列表时执行一些jquery操作。根据,有一个称为(填充)的事件用于此目的。 我在我的页面中添加了该代码: function raise_populated() { alert() } 下面是我如何使用下拉列表 <asp:DropDownList ID="listcat" runat="server" required></asp:DropDownList> <aj
function raise_populated() {
alert()
}
下面是我如何使用下拉列表
<asp:DropDownList ID="listcat" runat="server" required></asp:DropDownList>
<ajaxToolkit:CascadingDropDown ID="cdlisteCategorie" TargetControlID="listcat" PromptText='Catégories'
ServicePath="../Webservice/CategorieService.asmx" ServiceMethod="GetCategories" Category="IDCATS" runat="server" LoadingText="Chargement..."></ajaxToolkit:CascadingDropDown>
raise\u
从不点火。我找到了解决方案
function pageLoad(sender, args)
{
var cdd = $find("behaviorIDofCDD");
cdd.add_populated(onPopulated);
}
function onPopulated()
{
//any function to be called
}