accordion control in asp.net
<p>I have accordion control and having set of link button controls inside accordion control. I use the following code.</p>

<pre><code>&lt;asp:Accordion ID="Accordion1" Class="accordion" HeaderCssClass="accordionHeader"  
    HeaderSelectedCssClass="accordionHeaderSelected"  
    ContentCssClass="accordionContent" runat="server" Width="248px"&gt;
    &lt;Panes&gt;
        &lt;asp:AccordionPane ID="AccordionPane1" runat="server"&gt;
            &lt;Header&gt;Registration&lt;/Header&gt;
            &lt;Content&gt;
                &lt;asp:LinkButton ID="CandidateRegistration" CssClass="linkButton" 
                    runat="server" ForeColor="Black" 
                    OnClick="candidatesRegistration_Click" 
                    Text="Candidates Registered"&gt;&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="registrationByRqp" runat="server" 
                    ForeColor="Black" OnClick="registrationByRqp_Click" 
                    Text="Registered Through RQP"&gt;&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="registrationByUi" runat="server" 
                    ForeColor="Black" OnClick="registrationByUi_Click" 
                    Text="Registered Through UI"&gt;&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="avgRegistration" runat="server" 
                    ForeColor="Black" OnClick="avgRegistration_Click" 
                    Text="Average Registration"&gt;&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="jobsRegistered" runat="server" 
                    ForeColor="Black" OnClick="jobsRegistered_Click" 
                    Text="Jobs registered"&gt;&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="unregistered" ForeColor="Black" 
                    runat="server" Text="Unregistered Candidate" 
                    OnClick="unregistered_Click"&gt;&lt;/asp:LinkButton&gt;
            &lt;/Content&gt;
        &lt;/asp:AccordionPane&gt;
        &lt;asp:AccordionPane ID="AccordionPane2" runat="server"&gt;
            &lt;Header&gt;Job Alerts&lt;/Header&gt;
            &lt;Content&gt;
                &lt;asp:LinkButton ID="jobAlert" runat="server" ForeColor="Black" 
                    OnClick="jobAlert_Click"&gt;Job Alert&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="minScoreAlerts" runat="server" 
                    ForeColor="Black" OnClick="minScoreAlerts_Click"&gt;
                    Minimum score of job alerts&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="maxScoreAlerts" runat="server" 
                    ForeColor="Black" OnClick="maxScoreAlerts_Click"&gt;
                    Maximum score of job alerts&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="avgScoreJobAlerts" runat="server" 
                    ForeColor="Black" OnClick="avgScoreJobAlerts_Click"&gt;
                    Average score of daily alerts&lt;/asp:LinkButton&gt;&lt;br /&gt;
            &lt;/Content&gt;
            &lt;/asp:AccordionPane&gt;
            &lt;asp:AccordionPane ID="AccordionPane4" runat="server"&gt;
            &lt;Header&gt;Analysis&lt;/Header&gt; 
            &lt;Content&gt;
                &lt;asp:LinkButton  ID="searchpeakTime" runat="server" 
                    ForeColor="Black" OnClick="searchpeakTime_Click"&gt;
                    Search peak time&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="userActivityReport" runat="server" 
                    ForeColor="Black" OnClick="userActivityReport_Click"&gt;
                    User Activity Report&lt;/asp:LinkButton&gt;&lt;br /&gt;
                &lt;asp:LinkButton ID="operationalusage" runat="server" 
                    ForeColor="Black" OnClick="operationalusage_Click"&gt;
                    Operational Usage&lt;/asp:LinkButton&gt;
            &lt;/Content&gt;
            &lt;/asp:AccordionPane&gt;
            &lt;asp:AccordionPane ID="AccordionPane3" runat="server"&gt;
            &lt;Header&gt;Overview&lt;/Header&gt; 
            &lt;Content&gt;
                &lt;asp:LinkButton ID="Overview" ForeColor="Black" runat="server" 
                    OnClick="Overview_Click" &gt;Overview&lt;/asp:LinkButton&gt;&lt;br /&gt;
            &lt;/Content&gt;
        &lt;/asp:AccordionPane&gt;
    &lt;/Panes&gt;
&lt;/asp:Accordion&gt;&amp;nbsp; &amp;nbsp;&lt;br /&gt;
</code></pre>

<p>.Its works properly . But when i click the the link button in the second or third accordion pane the page will be redirected but the visibility return to accordionpane1. I want which link button i click meaks the corresponded accordion pane will be visible and not the first . Can anyone able help for that?
Thankx in advance...... </p>
