# How to read page url/query parameter?

**URL:** <https://forum.radzen.com/t/how-to-read-page-url-query-parameter/6279>\
**Category:** Blazor Server\
**Created:** [January 13, 2021, 7:46pm UTC](https://forum.radzen.com/t/how-to-read-page-url-query-parameter/6279 "2021-01-13T19:46:06Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mcanavar](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mcanavar](https://forum.radzen.com/u/mcanavar)\
**Post date:** [January 18, 2022, 12:53pm UTC](https://forum.radzen.com/t/how-to-read-page-url-query-parameter/6279/5 "2022-01-18T12:53:18Z")

</div>

Hi @korchev ,

Thank you for your working example.

some forum items with ( I think ) same question:

> [@Is it possible to consume a query string param (Id) sent from an outside program](https://forum.radzen.com/t/is-it-possible-to-consume-a-query-string-param-id-sent-from-an-outside-program/7929):
>
> I am using Radzen IDE to scaffold out a lot of CRUD pages. For some of them, I want to just pass and ID on a query string generated outside of the application into specific Radzen IDE generated pages. Is it possible to consume that ID passed on on a query string then use that to pass in for the record to load in a grid or in a form? I have a differnet blazor application I don't have time to build out dozens of look up tables, I just want to pass over the ID and have the Radzen IDE form or gri…

> [@Prefiltering](https://forum.radzen.com/t/prefiltering/995/2):
>
> Hi @Dwight_Rutledge, You can use query string to pass a parameter to some of the pages and later read this query string and use it with $filter for the data source method to filter your data. Here is how to get a query string value: ${(new URL(window.location.href)).searchParams.get("CustomerID")} and here is how to use it in Radzen page to invoke and filter data source data: Best Regards, Vladimir

b.r/  
Mehmet

---

_[View the full topic](https://forum.radzen.com/t/how-to-read-page-url-query-parameter/6279)._
