troubleshooting Question

ASP.net redirect button cuases error on some ie browsers

Avatar of taz8020
taz8020Flag for United Kingdom of Great Britain and Northern Ireland asked on
Web Languages and StandardsWeb Development.NET ProgrammingASP.NETVisual Basic.NET
3 Comments1 Solution471 ViewsLast Modified:
Hi Behind my search button I have the code below. It all worked well on trial, but now it has gone live finding that the below code cuases the error the page to show in some ie browsers. Firefox and chrome seem fine. If I turn off custom errors the page just hangs and does nothing if I turn on custom errors you get my error page.
May be its the time it takes to redirect I just dont know. Please help asap as site is now live.

If Me.TextBoxQuickSearch.Text.Length > 0 Then
            Dim SearchString As String = Me.TextBoxQuickSearch.Text
            If Right(SearchString, 1) = "s" Then
                SearchString = SearchString.Remove(SearchString.Length - 1)
            End If
            Response.Redirect("~/SearchResults.aspx?Search=" & SearchString)
        Else
            Me.TextBoxQuickSearch.Text = "No Text"
        End If 

ASP Mark Up
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="QuickSearch.ascx.vb" Inherits="QuickSearch" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Panel ID="SearchPanel" runat="server" DefaultButton="SearchButton">
        <div style="z-index: 0">
    <table style="width:100px;">
        <tr>
            <td>
                <asp:TextBox ID="TextBoxQuickSearch" runat="server" BackColor="#FFCCFF"></asp:TextBox>
                <ajaxToolkit:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" 
                    TargetControlID="TextBoxQuickSearch" WatermarkCssClass="SearchWaterMark" 
                    WatermarkText="Search For A Product...">
                </ajaxToolkit:TextBoxWatermarkExtender>


<ajaxToolkit:ToolkitScriptManager ID="ScriptManager2" runat="server">
</ajaxToolkit:ToolkitScriptManager>
            
            </td>
            <td align="left">
                <asp:ImageButton ID="SearchButton" runat="server" 
                    ImageUrl="~/Images/SiteImages/Search.png" style="height: 22px" />
            </td>
        </tr>
    </table>
    </div>
</asp:Panel>

This is a duplicate question as never had an answer on https://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_28078208.html
ASKER CERTIFIED SOLUTION
Ark

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros