Access an asp:hiddenfield control in JavaScript

前端 未结 6 1733
南旧
南旧 2020-12-21 00:10

What is the best way to access an ASP.NET HiddenField control that is embedded in an ASP.NET PlaceHolder control through JavaScript? The Visible attribute is set to false i

6条回答
  •  旧巷少年郎
    2020-12-21 00:40

    Visible doesn't actually make it visible, you can leave it default. Just runat="server" and use its .Value.

提交回复
热议问题