I'm building an ASP.NET 3.5 webapplication using VB.NET, and I'm having problems redirecting to another URL when using Google Chrome. Other browsers like IE and Firefox are fine.
My data entry forms all have an OK and an Cancel button, which are both handled server-side. The Cancel button just redirects back to the originating page, while the OK button will add or update a database record and then redirect to the originating page.
The redirect to the originating page is done by calling the following shared sub on a general utilities class in my appication:
Shared Sub Redirect(ByVal p_sURL As String)
Dim l_sURL As String = p_sURL.ToLower
If Left(l_sURL, 1) = "~" Then
Dim l_oControl As New System.Web.UI.Control
l_sURL = l_oControl.ResolveUrl(l_sURL)
If Left(l_sURL, 1) <> "/" Then
If Left(l_sURL, 7) <> "http://" AndAlso Left(l_sURL, 8) <> "https://" Then
l_sURL = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) & wsUtils.SiteRoot & l_sURL
As you can see, I've tried using the extra argument in the Response.Redirect call, but that doesn't make a difference.
All browsers except Google Chrome redirect fine, but Chrome does not redirect at all. When pushing the Cancel button nothing seems to happen. And when pushing the OK button, the corresponding database record is added or updated, but the redirect to the originating page doesn't happen.
This Chrome redirect problem occurs only on the production server. When running the application at 'localhost' there is no problem.
Any idea what might be causing this redirect issue in Google Chrome?