Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I Have URL With Below

http://test.test.com/contact/HotMailContacts.aspx#access_token=Test&token_type=bearer&expires_in=3600&scope=wl.signin


See After HotMailContacts.aspx there are [#] how could i get
1. access_token
2. token_type
3. expires_in
4. scope


Please help me out

thanks
Posted
Updated 19-Nov-13 23:07pm
v3
Comments
Er Daljeet Singh 20-Nov-13 5:19am    
try to replcae '#' with '?' then try...to fetch query string

Why do you use # instead of ? on first place? Hash-mark is for jumping to an anchor on the page (which can be named anchor or an element with id), thus it has no value (name=value pairs have no meaning), actually such an URL is not valid. Most clients are stripping what's behind hash-mark, so you can't use it instead of question mark. HTTP URL scheme is standardized[^], you can't avoid it.
 
Share this answer
 
v2
The browser does not transmit that part to the Server, so you need to handle it at the client end.
See here: http://stackoverflow.com/questions/317760/how-to-get-url-hash-from-server-side[^]
 
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