Elanat's WebForms Core Lets Server-Side Code Query Browser Storage via JS Modules
WebForms Core, a technology introduced by Elanat in 2024, enables two-way communication between server-side code and the client-side WebFormsJS library without requiring extensive frontend development. The system allows servers to send compact commands that WebFormsJS executes in the browser, with results returned back to the server. A key feature is the ability to dynamically load JavaScript modules from the server side, demonstrated here through the storage_size.js module. This module exposes a method called sz_GetStorageSize, which accepts a storage type and an optional unit parameter to retrieve the size of various browser storage mechanisms including cache, cookies, IndexedDB, localStorage, sessionStorage, and Origin storage. The example implementation uses C# with the CodeBehind framework, showing how server-side code can load the module and invoke its methods to fetch client-side storage data.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in