I work or razor page asp.net core 7 . i face issue i can't store vlue of selected value option on local storage
so please How to do that ?
on page model what i do
public class ShelfLabelPrinterSetUpModel : PageModel
{
public async Task OnPostSearchAsync(string selectbranchid)
{
// how to store value of local storage here
}
}
Tahir AnsariPosted Aug 20, 2023, 5:02 AM
To achieve this, you can use JavaScript in combination with your Razor Pages code.
Add a script section within your Razor Page to handle storing the selected value in the local storage when the form is submitted.
In your Razor Page model, retrieve the stored value from local storage when handling the form submission.