asp.nethidden-fields

Why are hidden fields used?


I have always seen a lot of hidden fields used in web applications. I have worked with code which is written to use a lot of hidden fields and the data values from the visible fields sent back and forth to them. Though I fail to understand why the hidden fields are used. I can almost always think of ways to resolve the same problem without the use of hidden fields. How do hidden fields help in design?

Can anyone tell me what exactly is the advantage that hidden fields provide? Why are hidden fields used?


Solution

  • Hidden fields is just the easiest way, that is why they are used quite a bit.

    Alternatives:

    Main concerns:

    Main advantages: