Hi @AgaNeto-3704,
There are several ways in ASP.NET MVC to maintain data when redirecting from one page to another or in the same page.
- Hidden Field 2.Cookies 3.Query String 4.ViewData 5.ViewBag 6.TempData
I personally think you can use cookies. Cookies are useful when storing small amounts of information on the client side.
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.