There is also a jQuery plugin available for the same. But you can do the same by using simply few javascript lines as follows.
function getParameterByName(name) {
var match = RegExp('[?&]' + name + '=([^&]*)')
.exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
Hope this helps you!
Aashish Surani (Synoverge Technologies Pvt. Ltd.) Mark as Answer if it helped!!! :)
madan535
Contributor
3217 Points
1179 Posts
Get the Request.query string value Jquery
Jul 23, 2011 01:47 PM|LINK
Hi,
I want to get the Get the Request.query string value in Jquery not code behind
princeG
Star
9612 Points
1602 Posts
Re: Get the Request.query string value Jquery
Jul 23, 2011 01:57 PM|LINK
check here
http://collecteddotnet.wordpress.com/2011/04/28/jquery-getting-querystring-parameters-value/
http://stackoverflow.com/questions/5083332/get-query-string-value-with-jquery-ajax-in-asp-net-mvc
http://www.bloggingdeveloper.com/post/JavaScript-QueryString-ParseGet-QueryString-with-Client-Side-JavaScript.aspx
asurani15
Participant
902 Points
167 Posts
Re: Get the Request.query string value Jquery
Jul 23, 2011 02:04 PM|LINK
Try this...
There is also a jQuery plugin available for the same. But you can do the same by using simply few javascript lines as follows.
Hope this helps you!
Mark as Answer if it helped!!! :)