ASP.NET: LinkButton waits 30 seconds before code-behind will start executing...
VS 2008 / IE8

Hello,

I have a LinkButton in an aspx page that will execute vb.net code-behind.

That is, after waiting 30-40 seconds, it finially begins the code-behind. (This is bad).

    Protected Sub SendToBatch_Click(ByVal sender As Object, ByVal e As EventArgs) Handles SendToBatch.Click
    
    'Some WCF calls and other junk

    End Sub

Now if I put a breakpoint on the line of code that reads 'Protected Sub', hit F5, and then click my button, the application will spin for 30-40 seconds before finally jumping to the ClickEvent. It's not firing javascript or anything else, and I've set validation to false on the linkbutton. It still spins for a minute (sometimes timing out) before finally starting the code-behind.

For whatever reason, there's no problem with Chrome -- just IE. Unfortunately, this is an intranet application and the whole company is on IE8 as a standard.

Here's the aspx code, the LinkButton in question is 'SendToBatch', near the bottom.


    <asp:TabContainer ID="InputContainer" name="InputContainer" runat="server" ActiveTabIndex="0">
        <asp:TabPanel runat="server" HeaderText="LetterInput" ID="LetterInput">
            <ContentTemplate>
            
            <table width="100%" height="100%" border=0 cellpadding=0 cellspacing=0>
            
                <tr><td class="style4"><br /><br /><br />Due Date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                    <td class="style3"><br /><br /><br /><asp:TextBox ID="txtDueDate" name="txtDate" runat="server"></asp:TextBox><asp:CompareValidator
                            ID="txtDateValidator" ValidationGroup="DateGroup" ControlToValidate="txtDueDate" runat="server" Operator="DataTypeCheck" Type="Date" ErrorMessage="Please enter a valid date."></asp:CompareValidator>
                                    <asp:CalendarExtender CssClass="cal_Theme1" ID="CalendarExtender1" runat="server" PopupButtonID="txtDate" TargetControlID="txtDueDate"></asp:CalendarExtender></td></tr>
                
                <tr><td class="style4">&#160;</td>
                    <td class="style3">&#160;</td></tr>
            
                <tr><td class="style4">Reasons:&#160;&#160;&#160;&#160;&#160;
                                    <p><center>
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate>
                                        <asp:ImageButton ID="ibClearReasons" runat="server" Height="30px" Width="30px" ImageUrl="~/Images/DeleteRed.png" AlternateText="Delete" /></center></ContentTemplate></asp:UpdatePanel></p></td>
                    <td class="style3">
                        <asp:UpdatePanel ID="updReasons" runat="server"><ContentTemplate>
                        <asp:TextBox ID="txtReasons" runat="server" Width="380px" Height="100px" TextMode="MultiLine" ReadOnly="False" AutoPostBack="True"></asp:TextBox></ContentTemplate></asp:UpdatePanel><br />
                                        <!--<asp:ListBox ID="lstReasons" runat="server" Width="380px" SelectionMode="Multiple"></asp:ListBox>--></td></tr>
            
                <tr><td class="style4">&#160;
                                        </td>
                    <td class="style3">
                                        <table width="100%" border=0 cellpadding=0 cellspacing=0>
                                            <tr><td class="style7">
                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
                                                <asp:Button ID="PopulateReasons" BorderStyle="Solid" Font-Underline="False" Font-Names="Tahoma" BackColor="#20548E" ForeColor="White" Height="22px" Width="75px" BorderColor="#20548E" runat="server" Text="Insert" />
                                                <!--<asp:LinkButton ID="ClearReasons" BorderStyle="Solid" Font-Underline="False" Font-Names="Tahoma" BackColor="#20548E" ForeColor="White" Height="16px" Width="85px" BorderColor="#20548E" runat="server"><center>Clear</center></asp:LinkButton>-->
                                                </ContentTemplate></asp:UpdatePanel></td>
                                            
                                                <!-- ValidationGroup="DateGroup" DO NOT INCLUDE IN LINKBUTTON -->
                                                <td class="style6"><asp:LinkButton ID="SendToBatch" runat="server" BackColor="#20548E" 
                                                                BorderColor="#20548E" BorderStyle="Solid" Font-Names="Tahoma" Font-Size="Small" 
                                                                Font-Underline="False" ForeColor="White" Height="16px" Width="85px" EnableViewState="True" CausesValidation="False"><center>Send To Batch</center></asp:LinkButton>&#160;&#160;&#160;&#160;</td>
                                            </tr>
                                        </table>

Any help would be greatly appreciated!

Thanks,

Jason

PLEASE NOTE: There is a similar question, which I tried to delete, but the site won't allow it because people have posted answers (none of which worked). Sorry if I've fouled!
ASP.NET: LinkButton waits 30 seconds before code-behind will start executing...
===

VS 2008 / IE8

Hello,

I have a LinkButton in an aspx page that will execute vb.net code-behind.

That is, after waiting 30-40 seconds, it finially begins the code-behind. (This is bad).

    Protected Sub SendToBatch_Click(ByVal sender As Object, ByVal e As EventArgs) Handles SendToBatch.Click
    
    'Some WCF calls and other junk

    End Sub

Now if I put a breakpoint on the line of code that reads 'Protected Sub', hit F5, and then click my button, the application will spin for 30-40 seconds before finally jumping to the ClickEvent. It's not firing javascript or anything else, and I've set validation to false on the linkbutton. It still spins for a minute (sometimes timing out) before finally starting the code-behind.

For whatever reason, there's no problem with Chrome -- just IE. Unfortunately, this is an intranet application and the whole company is on IE8 as a standard.

Here's the aspx code, the LinkButton in question is 'SendToBatch', near the bottom.


    <asp:TabContainer ID="InputContainer" name="InputContainer" runat="server" ActiveTabIndex="0">
        <asp:TabPanel runat="server" HeaderText="LetterInput" ID="LetterInput">
            <ContentTemplate>
            
            <table width="100%" height="100%" border=0 cellpadding=0 cellspacing=0>
            
                <tr><td class="style4"><br /><br /><br />Due Date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                    <td class="style3"><br /><br /><br /><asp:TextBox ID="txtDueDate" name="txtDate" runat="server"></asp:TextBox><asp:CompareValidator
                            ID="txtDateValidator" ValidationGroup="DateGroup" ControlToValidate="txtDueDate" runat="server" Operator="DataTypeCheck" Type="Date" ErrorMessage="Please enter a valid date."></asp:CompareValidator>
                                    <asp:CalendarExtender CssClass="cal_Theme1" ID="CalendarExtender1" runat="server" PopupButtonID="txtDate" TargetControlID="txtDueDate"></asp:CalendarExtender></td></tr>
                
                <tr><td class="style4">&#160;</td>
                    <td class="style3">&#160;</td></tr>
            
                <tr><td class="style4">Reasons:&#160;&#160;&#160;&#160;&#160;
                                    <p><center>
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server"><ContentTemplate>
                                        <asp:ImageButton ID="ibClearReasons" runat="server" Height="30px" Width="30px" ImageUrl="~/Images/DeleteRed.png" AlternateText="Delete" /></center></ContentTemplate></asp:UpdatePanel></p></td>
                    <td class="style3">
                        <asp:UpdatePanel ID="updReasons" runat="server"><ContentTemplate>
                        <asp:TextBox ID="txtReasons" runat="server" Width="380px" Height="100px" TextMode="MultiLine" ReadOnly="False" AutoPostBack="True"></asp:TextBox></ContentTemplate></asp:UpdatePanel><br />
                                        <!--<asp:ListBox ID="lstReasons" runat="server" Width="380px" SelectionMode="Multiple"></asp:ListBox>--></td></tr>
            
                <tr><td class="style4">&#160;
                                        </td>
                    <td class="style3">
                                        <table width="100%" border=0 cellpadding=0 cellspacing=0>
                                            <tr><td class="style7">
                                                <asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate>
                                                <asp:Button ID="PopulateReasons" BorderStyle="Solid" Font-Underline="False" Font-Names="Tahoma" BackColor="#20548E" ForeColor="White" Height="22px" Width="75px" BorderColor="#20548E" runat="server" Text="Insert" />
                                                <!--<asp:LinkButton ID="ClearReasons" BorderStyle="Solid" Font-Underline="False" Font-Names="Tahoma" BackColor="#20548E" ForeColor="White" Height="16px" Width="85px" BorderColor="#20548E" runat="server"><center>Clear</center></asp:LinkButton>-->
                                                </ContentTemplate></asp:UpdatePanel></td>
                                            
                                                <!-- ValidationGroup="DateGroup" DO NOT INCLUDE IN LINKBUTTON -->
                                                <td class="style6"><asp:LinkButton ID="SendToBatch" runat="server" BackColor="#20548E" 
                                                                BorderColor="#20548E" BorderStyle="Solid" Font-Names="Tahoma" Font-Size="Small" 
                                                                Font-Underline="False" ForeColor="White" Height="16px" Width="85px" EnableViewState="True" CausesValidation="False"><center>Send To Batch</center></asp:LinkButton>&#160;&#160;&#160;&#160;</td>
                                            </tr>
                                        </table>

Any help would be greatly appreciated!

Thanks,

Jason

PLEASE NOTE: There is a similar question, which I tried to delete, but the site won't allow it because people have posted answers (none of which worked). Sorry if I've fouled!