Click here to Skip to main content
16,014,662 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've a problem with this url's query string,
when i host this the query string "page=videos&section=view" is parsed as "page=videos§ion=view"
so my link is not working, what shall i do?
eg: http://www.samplewebsite.com/index.aspx?page=videos&section=view&vid_id=100092"
Posted
Updated 29-Jul-11 1:26am
v2

look at this: http://www.andreas.com/faq-char.html[^]

&sect gets translated to hex 167.
 
Share this answer
 
v2
Comments
Manfred Rudolf Bihy 29-Jul-11 7:42am    
My vote of 3:

I'm not totally convinced yet. Eventhough it would be the right character as § equals to §, I'm still in doubt because OP's string did not contain the semicolon at the end of the entity.
Manas Bhardwaj 29-Jul-11 8:00am    
I also thought so. But if you try simple Response.Write("&section"); on a page you would see 167 character followed by "ion".
Manfred Rudolf Bihy 29-Jul-11 10:53am    
Vote corrected to 5:
I suspect that this is a browser bug. I'll run this through my herd of browsers and will report back shortly.
Manfred Rudolf Bihy 29-Jul-11 11:04am    
OK FightAFox, ShmoogleGnome and InternetExploder all exhibit this behaviour when subjected to the following test HTML:

<html><body>

This is the real deal &quot;Section entity&quot;: &sect;<br/>

There is something in this line that might be mistaken for the real thing: &section<br/>

Hey an ampersand & and now as an entity: &amp;</body></html>
Manas Bhardwaj 29-Jul-11 11:09am    
same goes for Banana's Safari and GOpera :)
What does this return:

C#
string page = Request.QueryString.Item("page");
string section = Request.QueryString.Item("section");
string videoID = Request.QueryString.Item("vid_id");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900