ASP.NET hidden field vs. invisible textbox

前端 未结 4 1018
野性不改
野性不改 2021-02-20 03:16

what are benefits of using a hidden field in ASP.NET when we can use another invisible element such as label or text box?

4条回答
  •  没有蜡笔的小新
    2021-02-20 03:53

    Practically you can achieve the same thing with any of them, but since you want a "hidden field", semantically speaking the hidden field in ASP.NET is your best bet for readability reasons.

提交回复
热议问题