mailivore Posted December 29, 2010 Share Posted December 29, 2010 The full title is : How to make an AsynchroneousPostBackTrigger fire inside an accordionPane whereas the event handled is in another accordionPane Hi, To begin with, I'm not at ease with english so don't spank me if my title hurted your eyes . My problem is that I have a textbox which is controlled by the values of many comboboxes (a cascadingdropdown to be exact). I have absolutely no problem with my code as long as I don't try to put it in an accordion. What I would like to do is put the textbox in the first pane of the accordion and let the second pane for the comboboxes. Here is a simplified exemple of my code : <pre name="code" class="xhtml"><ajaxToolkit:Accordion ID="MyAccordion" runat="server" > <Panes> <ajaxToolkit:AccordionPane ID="Pane1" runat="server"> <Header>Expert</Header> <Content> <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional" RenderMode="inline" > <ContentTemplate> <asp:TextBox ID="Reference" runat="server" width="500"/> </ContentTemplate> <triggers> <asp:AsyncPostBackTrigger ControlID="C_PAS" EventName="SelectedIndexChanged" /> </triggers> </asp:UpdatePanel> </Content> </ajaxToolkit:AccordionPane> <ajaxToolkit:AccordionPane ID="Pane2" runat="server" > <Header>Utilisateur occasionnel</Header> <Content> <asp:DropDownList ID="C_PAS" runat="server" Width="50px" AutoPostBack="true" OnSelectedIndexChanged="C_PAS_SelectedIndexChanged"/> <ajaxToolkit:CascadingDropDown ID="PAS" targetcontrolid="C_PAS" category="PAS" runat="server" ServiceMethod="GetDropDownContents" servicepath="parametres_norme.asmx" /> </Content> </ajaxToolkit:AccordionPane> </Panes> </ajaxToolkit:Accordion> </pre><br> The error that I get is that the trigger can't find the object "C_PAS". Does a way exist to bypass this limitation or am I stuck to a not-so-beautiful webpage? Your help will be very appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/222886-how-to-make-an-asynchroneouspostbacktrigger-fire-inside-an-accordionpane/ Share on other sites More sharing options...
trq Posted December 29, 2010 Share Posted December 29, 2010 You'll get more help asking your question in an asp board. Asp abstracts away too much functionality for it to even look like Javascript. Quote Link to comment https://forums.phpfreaks.com/topic/222886-how-to-make-an-asynchroneouspostbacktrigger-fire-inside-an-accordionpane/#findComment-1152494 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.