I have a hidden field on master page. I am setting its value on a child page through JavaScript. When I click link on this child page it redirects to another page. Now I want to get the hidden field value on this new child page. But the value is lost(obviously). How can I persist this value.
Anyone help thanks in advance.
You can pass the value in the query string like this:
http://YourUrl.com/YourPage.aspx?YourValue=foo
Alternatively, you can initiate an AJAX call that stores the value in the session and then retrieve the value on the page_load
event of the next page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With