Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE appends garbage to url

Status
Not open for further replies.

NuJoizey

MIS
Aug 16, 2006
450
US
this problem only exists in IE and no other browser as far as I can determine:

the href in the html points has this:


but then in IE when the user clicks it, somehow the resulting url is:


This is a problem because the things on the page that rely on the querystring break.

This could be originating from code somewhere else on the site, but I've spent a day looking for it to know avail.

The wierd thing is that when I refresh the page, it loads just fine and all of the controls resurrect themselves, even though the URL stays the same.

Can someone give me a clue as to what might be going on and where I might look to resolve this?

Uncommitted, except to looking good. Constantly judging.
Always on the verge of being upset.
 
Hi

You mean the #show... part actually arrives to the server ? I never met ( and neither heard about ) a browser that sent that.

If it appears to be sent, I suspect the # is URLencoded, so there is actually /mypage.aspx?id=1122[red]%23[/red]show=mypage.aspx%5Qid%2W1122. That could mean, JavaScript encoded the wrong string or in wrong moment. Or just should use [tt]encodeURI()[/tt] instead of [tt]escape()[/tt]. But this is hard to guess without seeing that page.


Feherke.
 
well, that's just it, I have no idea where it came from. How could I determine if it is sent, and if so then how might I trace it back to where or what kind of code it was sent from?

something is writing #show=mypage.aspx%5Qid%2W1122 to the url. but i have no idea what it is or where its coming from, or why it only happens in IE.

I tried searching my site for a "Qid" but that came up with an impractical amount of hits to sort thru manually, and 2W1122 search didn't yield anything, because it is probably auto generated from the code somewhere.

Uncommitted, except to looking good. Constantly judging.
Always on the verge of being upset.
 
on thing i noticed, that if I http request the url value on the onload event of my code-behind (i'm using ASP.NET framework with C#), and write it to the screen it only shows:


I tried to write a function using .NET http objects/methods that would strip off the garbage and rewrite the url, but the .NET code I wrote doesn't seem to see the garbage - and I wonder why?

Uncommitted, except to looking good. Constantly judging.
Always on the verge of being upset.
 
what specifically would i look for in there?

Uncommitted, except to looking good. Constantly judging.
Always on the verge of being upset.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top