C
C#9mo ago
Tim

❔ Blazor Client Side: Get Query-Parameters

Is there any way to get the Query-Parameters with Blazor Client Side?
6 Replies
Tim
Tim9mo ago
(I want to get/use it in the `Program.cs)
Anu6is
Anu6is9mo ago
Microsoft.AspNetCore.WebUtilities has QueryHelpers.ParseQuery
Tim
Tim9mo ago
Yeah, but I need the Query-Parameter-String for that. Is there any way to get that without JS-Interop?
Anu6is
Anu6is9mo ago
you need the path with the query sting, not sure how else you want to get the query parameters... unless i'm misunderstanding your question you were kinda light on details
Monsieur Wholesome
There is no other way And you can get the query string via the NavigationManager which you can simply inject
Accord
Accord9mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.