Jump to content

How to make an AsynchroneousPostBackTrigger fire inside an accordionPane


mailivore

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.