Adam Bickels
Adam Bickels

Reputation: 471

how to get or set localStorage or sessionStorage storage using c#?

I need to find a way to get or set data, to or from localStorage or sessionStorage using C#. Is there a way to do this ?

Upvotes: 0

Views: 3277

Answers (2)

SpiderCode
SpiderCode

Reputation: 10122

You can do it from JavaScript. refer below link for the same :

Local Storage and Session Storage

Upvotes: 1

Lloyd
Lloyd

Reputation: 29668

Directly no. They're both client side and only accessible through JavaScript they never end up being serialised back to the server where the C# runs.

However, you could use JavaScript and have it talk to the C# side using AJAX or some such.

Upvotes: 1

Related Questions