Reponse.Redirect issue

Hi Experts -

I have two issues today that have to do with response.redirect.  Here my block of code:

Code
I have a repeater on my page that propagates several linkbuttons.  When a link is click is passes a CommandArgument that I use to generate a URL.  That URL is used to redirect the user based on his/her selection.

Now when I run this code in Chrome and FireFox it works.  I click on a link, the code executes, I get redirected to the page I selected.

However this code does not work in IE (ver 11) for some reason?  Any thoughts?

2.)  When I click the Linkbutton (in the two working browsers) and the user is redirected, the URL looks like this:

http://app.website.com/?username=jsmith&GUID=daedbe63-8318-49e6-adaa-73376206d774

The page will open but there is a forward slash between the com and the question mark ( com/?)  I can't figure out why that slash is there.

Here's my code for created the URL

Public Sub CreateRedirect(ByVal AppURL As String)

        Dim strURL As String = "http://" & AppURL & "?username=" & strUsername & "&GUID=" & strGUID

        Response.Redirect(strURL)
    End Sub

Open in new window


I should note that the URL being passed to the above subroutine does NOT have that slash.  For some reason it's being added.

Any help would be greatly appreciated.  Thanks!
cdemott33Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy PooleCommented:
Which version of IIS are you using and also which version of .NET?
0
cdemott33Author Commented:
It's a Windows 2003 server (IIS 6).  The app is pointing to .NET 3.5
0
Randy PooleCommented:
In version 9 of IE Microsoft changed the way it sends data on a button to include not only the x,y but also x.xx,y.xx due to touch screens and better accuracy.  Unfortunately the change is only reflected in .NET 4.x which causes pages using 3.5 to have this issue.  You can force people using IE 9+ to emulate IE8 by adding the following to your web.config file in your <system.webServer> node
		<httpProtocol>
			<customHeaders>
				<clear />
				<add name="X-UA-Compatible" value="IE=EmulateIE8" />
			</customHeaders>
		</httpProtocol>

Open in new window

0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

cdemott33Author Commented:
Unfortunately that doesn't seam to help.  The buttons in IE still do not work.   They continue to work in Chrome and Firefox.  Any other suggestions?
0
Randy PooleCommented:
If you open up the developer box in IE, what script errors are you seeing?
0
cdemott33Author Commented:
I think THIS might be the problem.  Looks like I'm going to have to update my .NET version.  What do you think?

http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx
0
Randy PooleCommented:
Forgot about that one, that could be it as well.
0
cdemott33Author Commented:
Any thoughts about the com/? issue?  It automatically adds the forward slash even thought I'm constructing the URL and saving it to a string variable.  

Public Sub CreateRedirect(ByVal AppURL As String)

        Dim strURL As String = "http://" & AppURL & "?username=" & strUsername & "&GUID=" & strGUID

        Response.Redirect(strURL)
    End Sub

Open in new window

0
Randy PooleCommented:
would need to know what is being passed as the AppURL string
0
Randy PooleCommented:
my guess is Appurl contains an ending /
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.