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

takes two clicks to repopulate checkboxlist within modalpopup

$
0
0

I have a checkboxlist populated by a datasource having a textbox as a controlparameter.  The checkboxlist is located within a modalpopup.  When I click the button, the checkboxlist shows the list pertaining to the previous select.  If I close and click the button to show the modalpopup, the second click shows the updated checkboxlist.  I've tried everything I can think of and nothing seems to work.  Ideas?

<asp:TextBox runat="server" ID="txtArcSearch" Columns="20" /><asp:Button ID="btnArcSearch" runat="server" text="Type Search" /><ajaxToolkit:ModalPopupExtender ID="mpePatient" runat="server" TargetControlID="btnArcSearch" PopupControlID="mpPatient" DropShadow="true" BackgroundCssClass="modalBackground" ></ajaxToolkit:ModalPopupExtender><asp:Panel ID="mpPatient" runat="server" CssClass="modalPopup" Style="display: none;"><asp:CheckBoxList ID="cblPatient" runat="server" DataSourceID="dsPat" RepeatDirection="Vertical" DataTextField="myType" DataValueField="patientTypeID" Font-Size="12px"  /><asp:SqlDataSource ID="dsPat"  ConnectionString="<%$ConnectionStrings:strConn %>" Runat="Server"  SelectCommand="SELECT TOP (100) PERCENT t.patientTypeID, myType FROM db.dbo.myDatabase AS t where (charindex(lower(@txt),lower(t.patientType)) >= 1)"><SelectParameters><asp:ControlParameter Name="txt" Type="String" ControlID="txtArcSearch"  /></SelectParameters></asp:SqlDataSource><asp:Button ID="btnPatClose" runat="server" Text="Close"   /></asp:Panel>


Viewing all articles
Browse latest Browse all 5678

Trending Articles



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