Click here to Skip to main content
15,891,763 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I need to get all Parameters Passed to the URL .

For example:::

http://msdn.microsoft.com/en-us/library/dd329551(v=vs.100).aspx

In the above URL I need "en-us","library","dd329551(v=vs.100).aspx" separately...


URL's may dynamically built..

So is there any dynamic code to extract parameters..
Posted
Updated 19-Sep-13 0:32am
v2

1 solution

Please see, for example, this JavaScript utility: https://github.com/allmarkedup/purl[^].

Alternatively, it's usual to extract parameters right in your code using Regex and some elementary calculations. See, for example: http://www.jquery4u.com/snippets/url-parameters-jquery/[^].

—SA
 
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