Click here to Skip to main content
16,016,134 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Friends,

I have a page say A.aspx i clicked a link and redirect to another page with querystring value

I want to load data with respect to this querystring value on another page on page load event with jquery .

How to do this .

Please help me??


Thanks in advance ,
shreeniwas kushwah
Posted
Updated 20-Jul-13 17:13pm
v2
Comments
ZurdoDev 20-Jul-13 23:14pm    
Where are you stuck?

1 solution

$(document).ready(function() {
var params = {};

var ps = window.location.search.split(/\?|&/);
for (var i = 0; i < ps.length; i++) {
if (ps[i]) {
var p = ps[i].split(/=/);
params[p[0]] = p[1];
}
}
});


to get query string values you can do this
 
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