• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • Last Modified:

Get Id by request query string from url by share point


How I can get the passing parameter id from a url by using query string in  share point and need to store this id to a share point control text box field.

regards
0
mshaji
Asked:
mshaji
  • 2
1 Solution
 
cfEngineersCommented:

<script>
function getQueryParam(key) {
var regex = new RegExp(key+"=([^&=]+)","i");
var match = regex.exec( window.location );
if( match != null ) {
return match[1];
} else {
return null;
}
}
</script>

call it like this getQueryParam("id");

Open in new window

0
 
mshajiAuthor Commented:

Thanks but i need to store this value in to a share point control like text box
0
 
mshajiAuthor Commented:
is good
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now