Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

How can I load the same Blazor page hitting same url with different parameters and show the parameter to UI in Blazor?

$
0
0

I am new to Web/Blazor development, so I can't find how to search the following question.

I am currently working at a Blazor.Server project in .NET 6 and I want to load the same page hitting one of the following urls:

https://localhost:7226/1https://localhost:7226/2https://localhost:7226/3

Hitting every time one of the above urls, I want to load the same Index.razor page and at the same time I need to read the parameter (1,2, or 3) to a variable as a parameter and show the same page with a tag element that shows the Id/parameter number.

How can I implement this functionallity?


Viewing all articles
Browse latest Browse all 4839

Trending Articles