我有手风琴控制,手风琴控制中有一组链接按钮控制。我使用以下代码。
<asp:Accordion ID="Accordion1" Class="accordion" HeaderCssClass="accordionHeader"
HeaderSelectedCssClass="accordionHeaderSelected"
ContentCssClass="accordionContent" runat="server" Width="248px">
<Panes>
<asp:AccordionPane ID="AccordionPane1" runat="server">
<Header>Registration</Header>
<Content>
<asp:LinkButton ID="CandidateRegistration" CssClass="linkButton"
runat="server" ForeColor="Black"
OnClick="candidatesRegistration_Click"
Text="Candidates Registered"></asp:LinkButton><br />
<asp:LinkButton ID="registrationByRqp" runat="server"
ForeColor="Black" OnClick="registrationByRqp_Click"
Text="Registered Through RQP"></asp:LinkButton><br />
<asp:LinkButton ID="registrationByUi" runat="server"
ForeColor="Black" OnClick="registrationByUi_Click"
Text="Registered Through UI"></asp:LinkButton><br />
<asp:LinkButton ID="avgRegistration" runat="server"
ForeColor="Black" OnClick="avgRegistration_Click"
Text="Average Registration"></asp:LinkButton><br />
<asp:LinkButton ID="jobsRegistered" runat="server"
ForeColor="Black" OnClick="jobsRegistered_Click"
Text="Jobs registered"></asp:LinkButton><br />
<asp:LinkButton ID="unregistered" ForeColor="Black"
runat="server" Text="Unregistered Candidate"
OnClick="unregistered_Click"></asp:LinkButton>
</Content>
</asp:AccordionPane>
<asp:AccordionPane ID="AccordionPane2" runat="server">
<Header>Job Alerts</Header>
<Content>
<asp:LinkButton ID="jobAlert" runat="server" ForeColor="Black"
OnClick="jobAlert_Click">Job Alert</asp:LinkButton><br />
<asp:LinkButton ID="minScoreAlerts" runat="server"
ForeColor="Black" OnClick="minScoreAlerts_Click">
Minimum score of job alerts</asp:LinkButton><br />
<asp:LinkButton ID="maxScoreAlerts" runat="server"
ForeColor="Black" OnClick="maxScoreAlerts_Click">
Maximum score of job alerts</asp:LinkButton><br />
<asp:LinkButton ID="avgScoreJobAlerts" runat="server"
ForeColor="Black" OnClick="avgScoreJobAlerts_Click">
Average score of daily alerts</asp:LinkButton><br />
</Content>
</asp:AccordionPane>
<asp:AccordionPane ID="AccordionPane4" runat="server">
<Header>Analysis</Header>
<Content>
<asp:LinkButton ID="searchpeakTime" runat="server"
ForeColor="Black" OnClick="searchpeakTime_Click">
Search peak time</asp:LinkButton><br />
<asp:LinkButton ID="userActivityReport" runat="server"
ForeColor="Black" OnClick="userActivityReport_Click">
User Activity Report</asp:LinkButton><br />
<asp:LinkButton ID="operationalusage" runat="server"
ForeColor="Black" OnClick="operationalusage_Click">
Operational Usage</asp:LinkButton>
</Content>
</asp:AccordionPane>
<asp:AccordionPane ID="AccordionPane3" runat="server">
<Header>Overview</Header>
<Content>
<asp:LinkButton ID="Overview" ForeColor="Black" runat="server"
OnClick="Overview_Click" >Overview</asp:LinkButton><br />
</Content>
</asp:AccordionPane>
</Panes>
</asp:Accordion> <br />
。它运作正常。但是,当我单击第二或第三个手风琴窗格中的链接按钮时,页面将被重定向,但可见性将返回到accordionpane1。我想要哪个链接按钮我点击meaks相应的手风琴窗格将是可见的而不是第一个。任何人都能为此提供帮助吗? 提前谢谢......