Last post Jul 27, 2020 09:33 PM by bruce (sqlwork.com)
Jul 27, 2020 05:47 PM|Efy|LINK
I need a site that is very sensitive to SEO, so I prefer a site that has several pages that are pided into different matters, compiled on the server, and provided to explore as HTML.
There are some components that I need to use them with Ajax.
I am not interested in working with WebSocekts and therefore neither SignalR, nor with Blazor Server.
I need components in different places on the pages (sometimes more than one place on each page), where people fill in several fields and send them to the server.
Blazor WASM is written in the head of components, and probably rightly so, but I sometimes want to write simple commands I would do with Jquery for example like server calls, and I no longer want to use JS, is it possible to write free C # code that does
not depend on areas (where components are located)?
I do not want to write the Ajax in JS anymore, is it possible to perform the task with Blazor in C #.
Or maybe there is a way (even through areas) to get what I need?
1. Each page has an app that uploads a different component (the pages are different razor pages (not SPA) who share a layout, the pages are rendered from the server.
2. Is there a possibility to place different areas on the page, how do I tell each component where to enter?
3. Is it planned to enable writing free C # code in the future with Blazor (without placing it in a component), just using http.Get() type of behaviour - without a component - like in Jquery or JS?
Jul 27, 2020 09:33 PM|bruce (sqlwork.com)|LINK
This is a long way from html calling a local C# routine.
so to do ajax, it would be: