Hi Kim,
The following code in .ascx should work:
<asp:HiddenField runat="server" ID="myHiddenField"/>
<script type="text/javascript">
function getUrlParameter(name) {
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
var results = regex.exec(location.search);
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
};
document.getElementById('<%# myHiddenField.ID %>').value = getUrlParameter('yourUrlParameter');
</script>