How can we make a decision for viewstate and hidden field in ASP.NET.
In my case, I use cross-page posting and using the public properties of the first page, I access them on the second aspx page.
After getting the public variable in the second aspx page, I need to access this value on the second page, but as soon as I return to the second page, I can not find this value.
Therefore, to solve this problem, I have two solutions: either use viewstate on the second page, or use a hidden field on the second page.
I canβt decide which one should I use?
source share