Search section of JQuery Datatable shows on all pages in Blazor Server App.

Ronald Rex 1,666 Reputation points
2022-09-02T23:05:20.97+00:00

The problem I'm facing is when I change page from page with JQuery Datatable to another page, I still have the search bar at top and pagination bar at bottom from the Datatable on the newly displayed Page. When I refresh page it goes away. Do I need some Javascript function to dispose of DataTable in the DOM? Where do you put javascript code in a Blazor Server App? Thanks !!!!

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,418 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,310 questions
{count} votes