Hi, Damian. Sorry for the delay in getting back to you.
If you download the "How do I?" demo for CascadingDropDown found at
http://www.asp.net/learn/videos/view.aspx?tabid=63&id=77 and add ListSearch to it, you will see the problem. (You will have to update the AjaxToolkit.dll, since that how-to was written prior to ListSearchExtender.) If you add the following lines to Default.aspx
between the opening form tag and the opening table tag that contains the 3 dropdownlists, you will see what I mean:
cnelson1
Member
21 Points
43 Posts
Re: ListSearchExtender causing postback twice
Jul 13, 2007 06:56 PM|LINK
Hi, Damian. Sorry for the delay in getting back to you.
If you download the "How do I?" demo for CascadingDropDown found at http://www.asp.net/learn/videos/view.aspx?tabid=63&id=77 and add ListSearch to it, you will see the problem. (You will have to update the AjaxToolkit.dll, since that how-to was written prior to ListSearchExtender.) If you add the following lines to Default.aspx between the opening form tag and the opening table tag that contains the 3 dropdownlists, you will see what I mean:
<ajaxToolkit:ListSearchExtender ID="ListSearchExtender1"
runat="server" TargetControlID="DropDownList1">
</ajaxToolkit:ListSearchExtender>
<ajaxToolkit:ListSearchExtender ID="ListSearchExtender2"
runat="server" TargetControlID="DropDownList2">
</ajaxToolkit:ListSearchExtender>
<ajaxToolkit:ListSearchExtender ID="ListSearchExtender3"
runat="server" TargetControlID="DropDownList3">
</ajaxToolkit:ListSearchExtender>
It will run fine, but when you close the page, or try to go to a different URL, you will get the following message:
Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.
I would really like to use these two extenders together. Could you look into this?
Thanks,
Carl