在 Accordion AJAX 控件中启用或禁用不同的窗格?

Enable or Disable different Panes within an Accordion AJAX control?

我有一个嵌套在 Accordion 控件中的结帐过程:

账单地址

送货地址

送货方式

信用卡信息

订单汇总

我想在页面加载时将启用状态设置为 false(帐单地址除外),并在用户完成信息并单击每个窗格中的 "Continue" 按钮时依次启用每个窗格。

目前,除了始终启用所有窗格外,一切都按我想要的方式运行。
我需要一个服务器端代码,以便在每次继续单击时我都可以启用或禁用 Accorion 窗格。

我还需要一个代码,在单击帐单地址窗格时,所有其他部分窗格都应该被禁用 我试过下面的代码,但它不起作用。

        BillingInformation.HeaderContainer.Enabled = false;
        ShippingInformation.HeaderContainer.Enabled = false;

已解决

我以前写的页面加载事件

        if (!IsPostBack)
        {  
            BillingInformation.HeaderContainer.Style.Add("pointer-events", "auto");
            ShippingInformation.HeaderContainer.Style.Add("pointer-events", "none");
            DelieveryMethodsPanel.HeaderContainer.Style.Add("pointer-events", "none");
            PromoCode.HeaderContainer.Style.Add("pointer-events", "none");
            PaymentInformation.HeaderContainer.Style.Add("pointer-events", "none");
        }

继续点击账单信息我曾经编写如下代码,通过它只有账单和运输信息将被启用,否则所有将被禁用。我只是改变 class 的样式,通过它它将获得 enable/disable.

public void Continue1()
    {            
            BillingInformation.HeaderContainer.Style.Add("pointer-events", "auto");
            BillingInformation.HeaderContainer.Style.Add("cursor", "pointer");

            ShippingInformation.HeaderContainer.Style.Add("pointer-events", "auto");
            ShippingInformation.HeaderContainer.Style.Add("cursor", "pointer");

            DelieveryMethodsPanel.HeaderContainer.Style.Add("pointer-events", "none");

            PromoCode.HeaderContainer.Style.Add("pointer-events", "none");

            PaymentInformation.HeaderContainer.Style.Add("pointer-events", "none");

    }