更新时间: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
}
}
}