Ajax Accordion Loses Current Pane

后端 未结 2 1289
情深已故
情深已故 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: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
    

提交回复
热议问题