Can I access LocalStorage from WiseJ?

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!

In javascript, I can access LocalStorage


localStorage.setItem(“lastname”, “Smith”);

can I set and read from localstorage in wiseJ?


  • You must to post comments

You can using javascript. We don’t pass the local storage back to the server since it could be quite large. You can execute any js method directly using Application.Eval().

My suggestion is to add your javascript functions in .js file(s) part of your project and use the methods from the app. You can create either global js functions or create a js object with your functions, like a namespace. Your javascript code can also call back your application on the server using [WebMethod], including methods in Program.cs or on a top level page or window.

I noticed that Application doesn’t have the Call method to be able to automatically serialize parameters, will add.

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json