C
C#15mo ago
Tim

❔ Blazor Client Side: Get Query-Parameters

Is there any way to get the Query-Parameters with Blazor Client Side?
6 Replies
Tim
TimOP15mo ago
(I want to get/use it in the `Program.cs)
Anu6is
Anu6is15mo ago
Microsoft.AspNetCore.WebUtilities has QueryHelpers.ParseQuery
Tim
TimOP15mo ago
Yeah, but I need the Query-Parameter-String for that. Is there any way to get that without JS-Interop?
Anu6is
Anu6is15mo 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
Accord15mo 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.
Want results from more Discord servers?
Add your server