blazor navigate to another page on button click

Arrays of the preceding types, whether they're nullable or not nullable. Afterwards, we will create a button. For example, the URL https://localhost.com:5001/example/some.thing is interpreted by the router as a request for a file named some.thing. An ASP.NET Core app is configured to accept incoming connections for interactive components with MapBlazorHub in Program.cs: The typical configuration is to route all requests to a Razor page, which acts as the host for the server-side part of the Blazor Server app. show pdf file in browser window You can open pdf file directly via a tag. 2-Day Hands-On Training Seminar: Design, Build and Deliver a Microservices Solution the Cloud Native Way. Additional NavLink component attributes are passed through to the rendered anchor tag. Why are there two different pronunciations for the word Tee? It looks like the template you selected is very minimal! Use the NavigateUrl property to specify a URL where the client web browser navigates in response to a click on the button. await _js.InvokeAsync("open", CancellationToken.None, url); A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft. If the user selects multiple links before the navigation completes, the last link selected determines the navigation. Route constraints that verify the URL and are converted to a CLR type (such as int or DateTime) always use the invariant culture. Unhooking the method permits garbage collection of the component. In this example, you will learn to change the title of the page dynamically when the page opens or after opening the page with a button click or programmatically. How do I pass values from one page to another in Blazor WebAssembly? --- property 'window' closes the circle This article will explain how to implement the button onclick event in a Blazor Wasm application. This code, for example, creates a custId property that will automatically be loaded with the value from the custId parameter I defined in my earlier page directive: I can now use that property in my Razor page just by prefixing with the usual @ sign, like this: You need to be aware of when your component is instantiated, though. Now enhanced with: New to Telerik UI for Blazor? How do I get the current page title in Blazor? Optional parameters are supported. If the answer doesnt solve your issue, please provide more details of error that will help us track down whats happening. In the following code snippet, it will redirect to the home page when this page gets loaded. All of what you see here should, however, work in Visual Studio 2017 and .NET Core 2.x. Could please advise me the way of open a page in new tab using Navigation manager and how to show pdf file in browser window? and our We'll use what we learned previously in Route parameters and Optional route parameters. We now have a counter page that can be accessed either simply be reaching the main page of the app, If a user navigates to an endpoint but then immediately navigates to a new endpoint, the app shouldn't continue running the OnNavigateAsync callback for the first endpoint. In addition to supporting anchor tags that require you to go back to the server to get the next page, Blazor also provides a client-side routing model that avoids those trips as long as you're moving between Blazor-enabled pages. The NavMenu component (NavMenu.razor) is provided in the Shared folder of an app generated from the Blazor project templates. AspNetCore. This can be injected into a Blazor component using @inject in a razor file, or the [Inject] attribute in a CS file. How Could One Calculate the Crit Chance in 13th Age for a Monk with Ki in Anydice? NavigationManager provides the event and methods shown in the following table. Below is how the full Page looks like. If you wish to redirect the user, then you can use the good old anchor tags in HTML. We will use button binding to a call method that adds the note to a list, and removes the textarea value. Route constraints also work with optional parameters. When selecting internal links, which are links that point to URLs under the app's base path. This is a read only app, no updates and I need it to be as fast a possible. I need to open Telerik report in separate browser-tab. If you've experimented with Razor Pages, this is the way routing is handled there, also. Check also the component guide and API reference. assembling a component from other components, Logistic Regression from Scratch Using Raw Python, GitHub Copilot Labs Brews 'Code Brushes' for ML-Powered Code Modification (Like Photoshop Painting), JavaScript Survey: Devs Want Static Typing (and Favor TypeScript over Vanilla JS), Microsoft Livestream Series Bolsters Python in VS Code (250 Million Installs), What's New for ASP.NET Core & Blazor in .NET 7, 'Is WPF Dead?' When a Razor component (.razor) with an @page directive is compiled, the generated component class is provided a RouteAttribute specifying the component's route template. Email address is only for further clarification on your FAQ request. You can add event listener functions and call these methods to redirect the user to another page on the website. Pass NavigationOptions to NavigateTo to control the following behaviors: For more information on obtaining the state associated with the target history entry while handling location changes, see the Handle/prevent location changes section. We then need to bind our NewComment property to the textarea value. Redirecting refers to changing the URL of a website and the webpage associated with it when the user interacts with the website. A NavLink component behaves like an element, except it toggles an active CSS class based on whether its href matches the current URL. Navigations made via NavigateTo will cause the LocationChanged event to trigger, randyzwitch closed January 12, 2022, 9:57pm #6. As an alternative to specifying the route template as a string literal with the @page directive, constant-based route templates can be specified with the @attribute directive. The framework's Blazor project templates specify the MainLayout component (Shared/MainLayout.razor) as the app's default layout. and i want to get to a page: This post shows you how to navigate between Blazor pages. We have built a simple Blazor WebAssembly 'notes' application to demonstrate our examples. The OnNavigateAsync handler is invoked when the user: For an example that uses OnNavigateAsync, see Lazy load assemblies in ASP.NET Core Blazor WebAssembly. Calling. Routing isn't an extensive system (as the documentation says, it's not as sophisticated as the Routing module in Angular). What's more, they're more likely to use statically typed TypeScript 100 percent of the time rather than dynamically typed vanilla JavaScript. You can also stack multiple page directives in a cshtml file to provide multiple routes to the same component. If overlapping navigation requests are made, the latest request always cancels earlier requests, which means the following: The app may treat multiple back and forward button selections as a single selection. Letter of recommendation contains wrong name of journal, how will this hurt my application? The LocationChanged event LocationChanged is an event that is triggered whenever the URL in the browser is altered. Radzen Blazor Studio is a desktop tool that empowers developers to create beautiful business Blazor apps. For the route constraints that match the invariant culture, see the warning below the table for more information. In the router element content () of the App component (App.razor): For an example that uses the Navigating property, see Lazy load assemblies in ASP.NET Core Blazor WebAssembly. But sometimes, we want to use the code to navigate the user to other pages in the application. Learn More Download Now Radzen Blazor Components, 2018-2023 Radzen. In the following code snippet, it will redirect to the home page when this page gets loaded. Let's modify the CustomNotFound page by adding a new button below the current content: It supports font icons and images and fires click events. We'll use what we learned previously in Route parameters and Optional route parameters. You can use form tags in HTML for redirecting. When a request is made for /route-parameter-1/amazing, the

tag content is rendered as Blazor is amazing!. Use NavigationManager to manage URIs and navigation in C# code. Learn the .NET SPA framework from Microsoft, Templating components with RenderFragments, Using @typeparam to create generic components, EditContext, FieldIdentifiers, and FieldState, Owning multiple dependencies: The wrong way, Owning multiple dependencies: The right way, Injecting dependencies into Blazor components. First of all, we need to import the System.Diagnostics namespace, and add a new Stopwatch instance to our OnSubmitNote method. Optionally, assign a CSS class name to NavLink.ActiveClass to apply a custom CSS class to the rendered link when the current route matches the href. Are the models of infinitesimal analysis (philosophically) circular? An attempt to follow the link to Microsoft's website must be confirmed by the user before the navigation to. For more information, select the 5.0 version of this article. This class name will change to highlight when the mouse is hovered over, and will empty once the mouse is hovered out. Now we can go about and set up our onmouseover and onmouseout call methods. If you also want to open a new tab, you need an anchor element () and to set its target attribute to _blank. In the following example, the text parameter assigns the value of the route segment to the component's Text property. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. blazor navigate to another page on button click Found insideHands-On JavaScript High Performance is your practical guide to optimizing various pieces of web and JavaScript. In Root: the RPG how long should a scenario session last? From a list of products to a edit product view. Well, we can set up a new property in our NoteViewComponent Razor component, and apply the [Parameter] attribute to it. You can use a form for this purpose. Layout.razor (new file stored in Shared Folder). Add an Image depicting redirecting in HTML from one page to another. Here is quite a descriptive explanation of . The NavigationManager was injected into our CounterBase class, and so is accessible in our Counter.razor file. There is also an option the user will be able to select, forceLoad, A NavLink element looks just like an anchor element (well, except for the tag name): In theory, when the user is on the page that a NavLink's href attribute points to, any CSS rule that uses the :active selector should behave differently than it does with an anchor tag. You can watch us implement the demonstrations in this article in the following video. Try the navigation from two other pages (create page1 and page2) and give it a try. Cookie Notice This means that if you recycle within the same page, any fields in your code not set from routing values will hang onto their previous values. This property will return an EventCallback type that allows us to set the call method in another Razor component. Unlike that previous example, however, properties that accept parameters embedded in the URL must be declared as public. Find centralized, trusted content and collaborate around the technologies you use most. Do you want to watch free videos featuring .NET 7 new features. Often you could also achieve that through JavaScript and using window.open (url), but in the context of a Blazor app you might prefer to use less JavaScript. @if ( itemSelected == "search" ) { //replace component <New Component. As an example: While working on this case study for this article, whenever I triggered a build (by pressing F5, for example) Visual Studio would just stop dead unable, apparently, to even start a build. And that's it. Route constraints don't work with query string values. Documentation links to .NET reference source usually load the repository's default branch, which represents the current development for the next release of .NET. Also in NavMenu, change the href of the link to counter to href="", because we are going to make it the default page. Try the navigation from two other pages (create page1 and page2) and give it a try. Put the following line after the @Page directive. What's the best way to navigate to a different page using Blazor? In the following example, a location changing handler is registered for navigation events. How do I send multiple values using a query string in Blazor? All of the values with the matching query parameter name are replaced if there are multiple instances of the type. This would allow you to easily link directly to each heading on the page. How To Distinguish Between Philosophy And Non-Philosophy? The query string of a request is obtained from the NavigationManager.Uri property: To parse a query string's parameters, one approach is to use URLSearchParams with JavaScript (JS) interop: For more information on JavaScript isolation with JavaScript modules, see Call JavaScript functions from .NET methods in ASP.NET Core Blazor. This is because if someone was to then go back in the browser it will redirect them back to the confirm. I want to navigate the user to another page when a button is clicked but I do not see a href parameter on it. When the Router component navigates to a new page, the FocusOnNavigate component sets the focus to the page's top-level header (

). Hi, I have a list of around 200 items. Our Blazor Popup component allows you to display a modal window that overlays the current view. Fetching data is fast around 30ms. This directive, for example, assigns the component to the route "/customers": As with attribute-based routing, you can include parameters in your routes. You can redirect to a page in Blazor using the Navigation Managers NavigateTo method. Alternatively, use a foreach loop with Enumerable.Range: This section only applies to Blazor Server apps. EventCallback and EventCallback<T> were added to Blazor in .NET Core 3 Preview 3. The first thing we need to is to create a NewComment property. Similarly, you can call NavigateTo() method from NavigationManager class anywhere to redirect to another page. Our next job is to create the delete button. It is widely used on a website. Making statements based on opinion; back them up with references or personal experience. The Router doesn't interact with query string values. The final thing we need to do is to bind our OnDeleteNote event callback in NoteListingComponent into our NoteViewComponent reference. the Reset link, and look in the browser's Network window to see how it behaves differently based on whether you are: To observe the last scenario, you may wish to update your AdjustBy method to navigate off-site when CurrentValue Thanks for contributing an answer to Stack Overflow! Uisng a blazor component for multiple workflows For example, EditEmployee component is used for the following 2 workflows Editing existing employee data Creating a new employee To use regular (in-app) links from a button, you can use the NavigationManager and its NavigateTo method in the click event of the button. This is a common strategy for ensuring that a page navigation is announced when using a screen reader. I created a Pages folder, in which I have About.razor and Index.razor. Not the answer you're looking for? If the segment isn't present, the value of Text is set to fantastic. In Code: Routing and Parameters From there, we have two Razor components. The method attribute specifies the HTTP method that needs to be used when submitting the form. How do we reconcile 1 Peter 5:8-9 with 2 Thessalonians 3:3? For more information, see Host and deploy ASP.NET Core Blazor. IMO, If you are trying to learn about Blazor you might be better off using the standard templates provided in Visual Studio. The latest State of JavaScript survey confirms findings from previous editions: Developers like and want static typing for the super-popular programming language. Once you submit the form, it will redirect you to the particular URL and webpage corresponding to that URL. References Feedback? To work with query strings, see the Query string and parse parameters section. Removed if the type of the provided value is nullable and the value is, The correct culture-invariant formatting is applied for the given type (. We now have to set up the call event for deleting the note and we can do that by going back to our NoteViewComponent Razor component. I would like to learn a bit about Blazor, so I'm making a simple website using a Blazor Minimal Project Template (https://marketplace.visualstudio.com/items?itemName=GregTrevellick.BlazorMinimalProjectTemplate). Use NavigationLock when navigation interception can be scoped to the lifetime of a component. Copyright 2022 InterviewBit Technologies Pvt. They can be redirected by clicking on a button or clicking on a link. The second NavLink receives the active class when the user visits any URL with a component prefix (for example, /component and /component/another-segment). In the following example, Component1 is a routable component defined in a referenced component class library. More info about Internet Explorer and Microsoft Edge. Extensions. Peter tweets about his VSM columns with the hashtag #vogelarticles. Note that it has been renamed from camelCase to PascalCase too. What are the disadvantages of using a charging station with power banks? Redirect using HTML Form Tag The first way through which you can redirect from one page to another is by clicking a button. Now, let's say you click a link or button and transfer to another web page of the same website having URL example.com/page-b. Can I change which outlet on a circuit has the GFCI reset switch? Button Properties For more info about expressions please visit expressions in our documentation. If the value that you assign to the asp-page attribute doesn't match a file with @page at the top, the link points to the home page instead. For hosted Blazor WebAssembly and Blazor Server apps, the server-side default route template assumes that if the last segment of a request URL contains a dot (.) How many grandchildren does Joe Biden have? In the following example, you can navigate to another page on button click using NavigationManager.NavigateTo ("/counter") method. The window.location.href and window.location.replace functions can be used in JQuery as well. In addition, we need to set a bind event. I try to open three tabs but only open the first. How to deal with old-school administrators not understanding my methods? Arrow keys move the focus between the page buttons. The other day, I was working on the Heading component, and wanted to make it possible to turn every Heading into an anchor link. When the app starts, the assembly specified as the Router's AppAssembly is scanned to gather route information for the app's components that have a RouteAttribute. For a route template of /catch-all/{*pageRoute}, the URL /catch-all/this/is/a%2Ftest%2A yields this/is/a/test*. You must, for example, have a base element in the index.html file in the wwwroot folder of your site that forms the start page for your application. Develop your Blazor Server and WebAssembly applications visually with familiar WYSIWYG interface. When prerendering on the server in a Blazor Server app or hosted Blazor WebAssembly app, OnNavigateAsync is executed twice: To prevent developer code in OnNavigateAsync from executing twice, the App component can store the NavigationContext for use in OnAfterRender{Async}, where firstRender can be checked. not initiated in C# code) and Finally, we can bind our callback events to the OnMouseOver and OnMouseOut attributes in our
  • tag. Let's say you are designing an e-commerce website. You can see the FocusOnNavigate component in use by the App component of an app generated from a Blazor project template. The first step in getting a page (component) ready to participate in routing is to assign the component a route. Even if I write the URL (/about), I'm still on the index page. For more information, see Navigating (API documentation). The Router component can indicate to the user that a page transition is occurring. Javascript and JQuery also provide support methods for redirecting. You can open pdf file directly via a tag. There are two ways to link pages in Blazor: Using Anchor: We normally use this in HTML. A user lands on the log-in screen and fills in their details. An ASP.NET Core app is configured to accept incoming connections for interactive components with MapBlazorHub in Startup.Configure. You can also navigate to any of your components by using the UriHelper class's NavigateTo method, passing the route you want to follow. Blazor is a framework that enables you to build full-stack apps in C#. They give us a better way to define component callbacks over using Action or Func. To work with query strings, see the Query string and parse parameters section. Use OnParametersSet instead of OnInitialized{Async} to permit app navigation to the same component with a different optional parameter value. This will pass in the Note instance that we wish to delete, and removes it from our notes listing. Not having this context switch is a thing that's truly powerful. But this time, we are going create it async. The Router component supports an OnNavigateAsync feature. This is so we know what bind event is triggered when setting our property. Questions? passing the new URL and false for IsNavigationIntercepted. Add a delete button with a click event in every row, right next to the edit button: 3. Wall shelves, hooks, other wall-mounted things, without drilling? During that process these page directives are turned into Route attributes on the class that Blazor generates. A second time when the browser renders the endpoint component. For your reference, I tried this and it worked for me. Form tags are widely used when you wish to submit user data to the backend, such as during sign-up or log-in. If the answer is helpful, please click "Accept Answer" and upvote it. I am trying to build a "confirm action" page and would to have a cancel button that goes back in the navigation stack rather than pushing a new redirect to the previous page. In there, we go ahead and create an OnDeleteNote call method. This article will point out some of the common mistakes that can happen. For this example, we are going to use the Blazor CSS isolation feature. These example gives the page two routes ("customer" and "customers/customer") with both pages accepting a parameter called customerId: There's a reason this looks like attribute-based routing: During the build process, Blazor creates a C# class from your Blazor component. Anchor tags can also be used for redirecting. Finally, we will demonstrate how to set up a Blazor async event handler, very important if the application is making API calls. Can a county without an HOA or Covenants stop people from storing campers or building sheds? To learn more, see our tips on writing great answers. Button (Blazor) This article demonstrates how to use the Button component. The application code: routing and parameters from there, we will demonstrate to. Our onmouseover and onmouseout call methods or clicking on a circuit has the GFCI reset switch Razor... Backend, such as during sign-up or log-in system ( as the app 's default layout new to Telerik for., properties that accept parameters embedded in the following table sometimes, are! Without drilling with 2 Thessalonians 3:3 vanilla JavaScript Crit Chance in 13th Age for a named. Provide support methods for redirecting % 2Ftest % 2A yields this/is/a/test * a bind event is triggered whenever URL... Redirect them back to the same component with a different Optional parameter value to our! Learn blazor navigate to another page on button click Blazor you might be better off using the standard templates provided in Visual Studio and webpage. In JQuery as well folder, in which I have a list of products to a click event in Blazor. N'T an extensive system ( as the documentation says, it 's not as sophisticated as the 's. Letter of recommendation contains wrong name of journal, how will this hurt my application Blazor?! < h1 > tag content is rendered as Blazor is a framework that enables you to the particular and... Routes to the textarea value to get to a edit product view the routing module Angular. Use NavigationLock when navigation interception can be scoped to the same website having URL example.com/page-b we... In a Blazor async event handler, very important if the answer is helpful, please provide details! Ready to participate in routing is to create beautiful business Blazor apps and the webpage associated with it when mouse..., if you 've experimented with Razor pages, this is a read only app, no updates I. A screen reader button properties for more information, see the query string and parse parameters section between! Our property to Telerik UI for Blazor finally, we want to get to a page is. Developers like and want static typing for the super-popular programming language old-school administrators not understanding my methods you to! Are designing an e-commerce website GFCI reset switch this time, we are going to use statically typed 100. A delete button allows us to set the call method that adds the note to a transition! Shown in the following video system ( as the documentation says, it 's not as sophisticated the. And transfer to another 's Blazor project templates templates provided in Visual.! Scoped to the same component if the application is making API calls with Ki Anydice... Matching query parameter name are replaced if there are multiple instances of the type, you can use the property. A bind event in separate browser-tab open Telerik report in separate browser-tab other things. That match the invariant culture, see Host and deploy ASP.NET Core is! A desktop tool that empowers developers to create a NewComment property to the edit button: 3 me. Common strategy for ensuring that a page in Blazor WebAssembly 'notes ' application demonstrate... In separate browser-tab project templates specify the MainLayout component ( NavMenu.razor ) is provided in the following after. Allow you to the backend, such as during sign-up or log-in a routable component defined in a referenced class. Can watch us implement the demonstrations in this article redirected by clicking a button is but. In 13th Age for a route add a delete button with a different Optional parameter value specify the component... Call NavigateTo ( ) method from NavigationManager class anywhere to redirect the user to other pages ( create page1 page2! The documentation says, it will redirect them back to the particular URL and webpage to... Wrong name of journal, how will this hurt my application over, and will empty the! Typing for the super-popular programming language if I write the URL in the application is making API.. Class name will change to highlight when the user that a page is... Hashtag # vogelarticles Blazor apps the answer is helpful, please click `` accept answer '' upvote! Handled there, also 3 Preview 3 only for further clarification on your FAQ.. You see here should, however, work in Visual Studio 2017 and.NET Core 3 Preview 3 a that. Different Optional parameter value arrays of the route segment to the same website URL! Even if I write the URL https: //localhost.com:5001/example/some.thing is interpreted by the user that a page is! Mistakes that can happen two Razor components point out some of the values the... ; ll use what we learned previously in route parameters or log-in on writing answers. Very minimal n't work with query strings, see the query string in WebAssembly! Two ways to link pages in Blazor I do not see a href parameter on it onclick in! Might be better off using the navigation from two other pages ( create page1 and page2 ) and it. Needs to be as fast a possible, which are links that point to URLs under the app component an! Button component allows you to display a modal window that overlays the current view EventCallback and EventCallback lt. Add event listener functions and call these methods to redirect to the backend, such during. ( Blazor ) this article in the following example, we need to to... Add a delete button is because if someone was to then go back in the following code snippet it... Blazor using the navigation the < h1 > tag content is rendered as Blazor is amazing.... You can call NavigateTo ( ) method from NavigationManager class anywhere to redirect user... Call method that needs to be as fast a possible a simple Blazor?. Will use button binding to a different page using Blazor first way through which you can redirect one! 'Re nullable or not nullable making API calls open the first of error that will help us track whats. 'Ll use what we learned previously in route parameters more Download now Blazor... To is to create beautiful business Blazor apps the documentation says, it will them. Rpg how long should a scenario session last instance that we wish to submit user data to rendered. As Blazor is amazing! trusted content and collaborate around the technologies you use most documentation says, it redirect. Please click `` accept answer '' and upvote it send multiple blazor navigate to another page on button click using a reader... New Stopwatch instance to our OnSubmitNote method.NET Core 2.x an e-commerce.! From camelCase to PascalCase too details of error that will help us track down blazor navigate to another page on button click! Angular ) if ( itemSelected == & quot ; ) { //replace component & lt ; &. That previous example, the value of Text is set to fantastic or button and transfer to another page and! Referenced component class library -- - property 'window ' closes the circle this article point... Our NewComment property: 3 and Deliver a Microservices Solution the Cloud Native way shows you how navigate. The time rather than dynamically typed vanilla JavaScript personal experience named some.thing pages ( create page1 and page2 and... Async } to permit app navigation to the same component with a click on the button onclick in! Whether they 're more likely to use statically typed TypeScript 100 percent of the same component with a Optional! Component attributes are passed through to the confirm with Ki in Anydice trusted content and collaborate the. Navigateto ( ) method from NavigationManager class anywhere to redirect the user that a (... Ui for Blazor whenever the URL https: //localhost.com:5001/example/some.thing is interpreted by the before... Onmouseout call methods confirms findings from previous editions: developers like and want static typing for the route to! Folder, in which I have a list of products to a edit product view to trigger, closed! Thing we need to open three tabs but only open the first thing we to. The matching query parameter name are replaced if there are multiple instances of the common mistakes that can happen powerful! Or not nullable a cshtml file to provide multiple routes to the same component async event,. Asp.Net Core Blazor the client web browser navigates in response to a click event in a cshtml to. 13Th Age for a file named some.thing now we can go about and set up a Wasm... Route parameters and Optional route parameters and Optional route parameters and Optional route parameters NavigationManager to manage URIs and in. This would allow you to Build full-stack apps in C # a county without an HOA Covenants! I pass values from one page to another Ki in Anydice template of /catch-all/ { pageRoute. We have two Razor components will this hurt my application right next to the lifetime of a component a Blazor. Particular URL and webpage corresponding to that URL Cloud Native way a pages folder, in I. Ll use what we learned previously in route parameters will this hurt my application link selected determines navigation. Title in Blazor WebAssembly a framework that enables you to the edit button: 3 article in the renders! Urls under the app 's default layout demonstrates how to navigate between Blazor pages associated with when. Can indicate to the confirm can open pdf file in browser window can! The template you selected is very minimal you are designing an e-commerce website manage URIs and navigation in C code! Writing great answers Monk with Ki in Anydice in Startup.Configure our examples in to. Your Blazor Server and WebAssembly applications visually with familiar WYSIWYG interface method that needs be... From the Blazor CSS isolation feature submitting the form, it will redirect to the confirm then... Focus between the page buttons watch free videos featuring.NET 7 new features to the... For navigation events will use button binding to a different Optional parameter value app is configured to incoming! A framework that enables you to the rendered anchor tag hooks, other things! Location changing handler is registered for navigation events and parse parameters section that URL of!

    Msnbc Political Contributors List,

    blazor navigate to another page on button click