How to set and get session in .net razor template

qasimali84

New member
Joined
Dec 2, 2023
Messages
1
Programming Experience
5-10
Hi
I am designing a razor template for patient information. I want to store patient id in session. For the moment I am trying to get it on same page. But failed to do so. Need your help in this regard, please
Following three files are attached
1. SessionStorageAccessor.cs
2. Program.cs (where I have registered SessionStorageAccessor class)
3. PatientRegistration.razor (Here I want to set and get session)
Waiting for your support please

Regards

Qasim Ali
 

Attachments

  • SessionStorageAccessor.zip
    2.5 KB · Views: 9
Back
Top Bottom