我在asp.net中使用bootstrap选项卡时遇到问题。如果我在选项卡2或3中有一个包含任何操作的按钮,则后缀始终在选项卡1中返回。
<div class="col-md-8 col-lg-8">
<div class="clearfix">
<ul class="nav nav-tabs pull-left" id="tabs1">
<li class="active"><a aria-expanded="true" href="#tab1" data-toggle="tab">Produtos</a></li>
<li><a aria-expanded="false" href="#tab2" data-toggle="tab">Detalhes</a></li>
<li><a aria-expanded="false" href="#tab3" data-toggle="tab">Pagamento</a></li>
</ul>
</div>
<div class="tab-content mb-lg" id="tabs1c">
<div class="tab-pane clearfix active" id="tab1">
Test page 1
</div>
<div class="tab-pane" id="tab2">
Test page 2
</div>
<div class="tab-pane" id="tab3">
<asp:Button ID="btnTest" runat="server" onclick="teste_click" Text="Test" CssClass="btn btn-primary" />
</div>
</div>
</div>