且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在ajax选项卡容器的选项卡面板中填充gridview

更新时间:2021-08-13 08:29:29

试试这个



最初

Try this

Initially
<asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0"
        Height="367px" Width="1000px">










protected void Page_Load(object sender, EventArgs e)
   {
       if (!IsPostBack)
       {
          if(TabContainer1.ActiveTabIndex==0)
           {

//Populate GridView1
           }
          else if(TabContainer1.ActiveTabIndex==1)
           {

//poputale Grid2
           }
       }
   }