Skip to content

Instantly share code, notes, and snippets.

@ElfhirDev
Last active January 6, 2016 15:55
Show Gist options
  • Save ElfhirDev/9c8313f01a07cfda67bc to your computer and use it in GitHub Desktop.
Save ElfhirDev/9c8313f01a07cfda67bc to your computer and use it in GitHub Desktop.
Request.QueryString
div id="block">
<p class="query">
</p>
</div>
<script>
$(document).ready(function() {
var query='<%=Request.QueryString%>';
$('#block .query').html(query);
});
</script>
@ElfhirDev
Copy link
Author

For getting parameters in URL with .NET code and injecting it in JavaScript code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment