Very odd behaviour
-
I have a Blazor Server App .NET 9, C#
At present it has two pages /AllValves/GetValves.razor and /AllValves/GetActuators.razor. The pages are rendered by a GenericPagedView component which without getting into details , adds pagination , First,Previous,Next buttons etc..
Here is the rub , none of the pagination buttons respond when the pages are launched from Components/Pages/AllValves/ but when I create a Test.razor file with the same content as either of the pages but located in /Components/Pages/ they work , and even stranger so do the AllValves pages but if I remove Test.razor or exclude it from the project the buttons don't work. I just read this back and it sounds ridiculous - any ideas / suggestions welcomed -
I have a Blazor Server App .NET 9, C#
At present it has two pages /AllValves/GetValves.razor and /AllValves/GetActuators.razor. The pages are rendered by a GenericPagedView component which without getting into details , adds pagination , First,Previous,Next buttons etc..
Here is the rub , none of the pagination buttons respond when the pages are launched from Components/Pages/AllValves/ but when I create a Test.razor file with the same content as either of the pages but located in /Components/Pages/ they work , and even stranger so do the AllValves pages but if I remove Test.razor or exclude it from the project the buttons don't work. I just read this back and it sounds ridiculous - any ideas / suggestions welcomed@pkfox said in Very odd behaviour:
none of the pagination buttons respond
Depends on if you're using per page interactivity or not when you created the project. If it is, use this on the page or the component, depending on what you want static or interactive:
@rendermode InteractiveServer
Usually goes at the top of the razor page...
-
@Graeme_Grant cheers Graeme you put me on the right path I needed
<body>
<Routes @rendermode=RenderMode.InteractiveServer/>
<script src="_framework/blazor.web.js"></script>
</body>
in App.razor .net 9 doesn't have a _Host file any more so even the css links have to go in here to