views:

27

answers:

0

How do I hide a particular pane within an AJAX accordion pane control from code behind / programatically? I found the following code, and am not sure how to use in within an ASP.NET page with a master page (where I don't have a head tag in my actual page).

In order to hide an Accordion Pane, use the following script:

<script type="text/javascript">
    function pageLoad()
    {
        hideAccordionPane(1);
    }

    // hides pane 1
    function hideAccordionPane(paneno)
    {
        $find('AccordionCtrl_AccordionExtender').get_Pane(paneno).header.style.display="none";
        $find('AccordionCtrl_AccordionExtender').get_Pane(paneno).content.style.display="none";
    }
</script>