Why a simple POST takes too long?
<p>I am running tests on a site which will be online next week and i have a strange situation.</p>

<p>On <a href="http://213.133.103.5/gramma_prod/Site/DetaliiProdus.aspx?category=m1&amp;productId=778&amp;subcategory1Id=41&amp;subcategory2Id=72" rel="nofollow">this</a> page i have 4 Tabs where <strong>'Prezentare'</strong> is loaded by Default.
Well, i do not understand why, when i press on <strong>'Descopera'</strong>  the POST to the server <strong>takes 6 seconds !!!</strong> (used firebug to investigate) Please note that no queries are running behing that POST only a div is hidden and another is made visible...</p>

<p>Do you have any clue?</p>

<p>I have a dedicated server:
Single core AMD Athlon 64 3700+
2 GB</p>

<p>Thanks in advance...</p>

<p><strong>Edit:</strong> the tabs are within an update panel and the Tabs' names are link buttons which OnClick event show the corresponding div and hide the others</p>

<p>Code for Tabs:</p>

<pre><code>&lt;asp:UpdatePanel runat="server" ID="updatePanelTabs"&gt;
    &lt;ContentTemplate&gt;
        &lt;div class="tab-content"&gt;
            &lt;ul class="meniu prezentare" runat="server" id="ulTabs"&gt;
                &lt;li&gt;
                    &lt;asp:LinkButton OnClick="lnkTab_Click" ID="lnkPrezentare" runat="server"&gt;Prezentare
                 &lt;/asp:LinkButton&gt;
                &lt;/li&gt;
                &lt;li&gt;
                    &lt;asp:LinkButton OnClick="lnkTab_Click" ID="lnkRecenzie" runat="server"&gt;Recenzie
                 &lt;/asp:LinkButton&gt;
                &lt;li&gt;
                    &lt;asp:LinkButton OnClick="lnkTab_Click" ID="lnkComentarii" runat="server"&gt;Comentarii
                 &lt;/asp:LinkButton&gt;
                &lt;/li&gt;
                &lt;li&gt;
                    &lt;asp:LinkButton OnClick="lnkTab_Click" ID="lnkDescopera" runat="server"&gt;Descopera
                 &lt;/asp:LinkButton&gt;
                &lt;/li&gt;
// other code
&lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
</code></pre>

<p>What OnClick method is doing:</p>

<pre><code> protected void lnkTab_Click(Object sender, EventArgs e)
    {
        LinkButton lnkPressed = (LinkButton)sender;
        switch (lnkPressed.ID.ToString())
        {
            case "lnkPrezentare":
                {
                    ulTabs.Attributes.Add("class", "meniu prezentare");
                    hideRestTabs("lnkPrezentare");
                    break;
                }
            case "lnkRecenzie":
                {
                    ulTabs.Attributes.Add("class", "meniu recenzie");
                    hideRestTabs("lnkRecenzie");
                    break;
                }
            case "lnkComentarii":

                {
                    ulTabs.Attributes.Add("class", "meniu comentarii");
                    hideRestTabs("lnkComentarii");
                    break;
                }
            case "lnkDescopera":
                {
                    ulTabs.Attributes.Add("class", "meniu descopera");
                    hideRestTabs("lnkDescopera");
                    break;
                }
        }
    }
</code></pre>

<p><strong>UPDATE:</strong> It seems that it depends on internet connection for me. I have friends which tested and for they the "switching tabs" takes 1.5 s...</p>
