Share via

Hidden field issue

Scott Huang 3,511 Reputation points
2022-08-05T09:28:17.42+00:00

Hi,
How to initiate one Hidden field (within the web page), and let it be incremented one (on it) whenever the condition like "if (!IsPostBack)" is being triggered/fired?

Developer technologies | .NET | .NET Runtime
Developer technologies | .NET | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 84,086 Reputation points
    2022-08-05T22:04:57.447+00:00

    As a !Postback is just a get, you need a persistent server store. Use a database, global cache or session to store the value. Just read and update in the on load event,

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.