Ajax Accordion Loses Current Pane

后端 未结 2 1288
情深已故
情深已故 2021-01-07 05:37

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

相关标签:
2条回答
  • 2021-01-07 06:24

    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.

    0 讨论(0)
  • 2021-01-07 06:25

    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
    
    0 讨论(0)
提交回复
热议问题