Ajax tabContainer using GridView inside panel, one button outside of the tabContainer

前端 未结 1 1835
旧巷少年郎
旧巷少年郎 2021-01-27 06:46

I\'m creating Admin Panel using Ajax tab container which has 5 tapPanels and in that each tapPanel, I have one Panel from standard tool. And in that each Panel, I have GridView

相关标签:
1条回答
  • 2021-01-27 07:19

    Please use the following code:

            AjaxControlToolkit.TabContainer container = (AjaxControlToolkit.TabContainer)TabConAddInfo;
            int index = container.ActiveTabIndex;
    
            if (index == 0)
            {
                addSplash();
                lblMsgAdd.Text = "Added successfully";
            }
            else if (index == 1)
            {
                addMainCat();
                lblMsgAdd.Text = "Added successfully";
            }
            else if (index == 2)
            {
                addSubCat();
                lblMsgAdd.Text = "Added successfully";
            }
            else if (index == 3)
            {
                addBusinessContact();
                lblMsgAdd.Text = "Added successfully";
            }
            else if (index == 4)
            {
                addPersonContact();
                lblMsgAdd.Text = "Added successfully";
            }     
    
    0 讨论(0)
提交回复
热议问题