title: Setting default active tab for tabcontainer
body: <p>I am using tabcontainer in my project having two tabs as English and Spanish.</p>
  
  <p>Tabs are as follows:</p>
  
  <p><img src="https://i.stack.imgur.com/jGzBN.png" alt="enter image description here"></p>
  
  <p>As we can see in pic, default active tab set is spanish.</p>
  
  <p>I wanted it to be English.</p>
  
  <p>For that i made following code:</p>
  
  <p><code>tcQuestion.ActiveTabIndex = "1"</code> this i written on pageload, as well ,</p>
  
  <p>in aspx:  <code>&lt;asp:TabContainer ID="tcQuestion" runat="server" ActiveTabIndex="1" Width="90%"&gt;</code> i added <code>ActiveTabIndex="1"</code></p>
  
  <p>But as we can see in pic, no difference with this code. Default selection is spanish only.</p>
  
  <p>For more clarity i would like to share whole code for tab container:</p>
  
  <pre><code>&lt;asp:TabContainer ID="tcQuestion" runat="server" ActiveTabIndex="1" Width="90%"  &gt;
          &lt;asp:TabPanel runat="server" HeaderText="English" ID="English" &gt;
              &lt;ContentTemplate&gt;
                  &lt;table align="center"  width="90%"&gt;
                      &lt;tr&gt;
                          &lt;td align="center" class="Heading" colspan="2" valign="top" &gt;
                           &lt;asp:Label ID="lblEnglish"  Text="Add Question" runat="server" &gt;&lt;/asp:Label&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;td align="right" class="NormalText" width="40%" valign="top" &gt;
                               Question :
                           &lt;/td&gt;
                          &lt;td align="left"&gt;
                              &lt;asp:TextBox ID="txtEnglishQuestion" runat="server" CssClass="ThinTextBox" Rows="7" Columns="35"  
                                  TextMode="MultiLine"&gt;&lt;/asp:TextBox&gt;
                          &lt;/td&gt;
                      &lt;/tr&gt;
  
                  &lt;/table&gt;
              &lt;/ContentTemplate&gt;
  
  
          &lt;/asp:TabPanel&gt;
           &lt;asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Spanish" &gt;
               &lt;ContentTemplate&gt;
                   &lt;table align="center"  width="90%"&gt;
                       &lt;tr&gt;
                           &lt;td align="center" class="Heading" colspan="2" valign="top"  &gt;
                               Add Question
                           &lt;/td&gt;
                       &lt;/tr&gt;
                       &lt;tr&gt;
                           &lt;td align="right" class="NormalText" width="40%" valign="top" &gt;
                               Question :
                           &lt;/td&gt;
                           &lt;td align="left"&gt;
                               &lt;asp:TextBox ID="txtQuestionSpanish" runat="server" CssClass="ThinTextBox" Rows="7" Columns="35"  
                                   TextMode="MultiLine"&gt;&lt;/asp:TextBox&gt;
                           &lt;/td&gt;
                       &lt;/tr&gt;
  
  
                   &lt;/table&gt;
               &lt;/ContentTemplate&gt;
           &lt;/asp:TabPanel&gt;
  
      &lt;/asp:TabContainer&gt;
  </code></pre>
  
  <p>note : Programming language does not matters to me (wheather its c# or vb.net)</p>
  
  <p>Please help me.</p>