I’m using an Ajax Accordion with several panes. On a postback the currently opened pane is always reset back to the first pane.
Is there any way around this problem?
Thanks
Rob.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
I’ve worked-around the problem by passing the current pane index in the query string then setting the current pane back to the index in the Page_Load event of the target page.
Thanks,
Rob.
Method 2
i do solve this by use link with Query String like this below
url="~/Opportunity/Indent.aspx?index=1" // replace 1 with your desired index
and in page load event write something like this
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim selectedindex As String = Request.QueryString("index")
UserAccordion.SelectedIndex = selectedindex
End Sub
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0