HiddenField Class

HiddenField Class

Represents a hidden field used to store a non-displayed value.   

Introduction

The HiddenField control is used to store a value that needs to be persisted across posts to the server. It is rendered as an <input type= "hidden"/> element.

Normally view state, session state, and cookies are used to maintain the state of a Web Forms page. However, if these methods are disabled or are not available, you can use the HiddenField control to store state values.

To specify the value for a HiddenField control, use the Value property. You can provide a routine that gets called every time the value of the HiddenField control changes between posts to the server by creating an event handler for the ValueChanged event.  

 

 

 

 

作者:Chuck Lu    GitHub    
posted @   ChuckLu  阅读(251)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2018-07-12 网上职位要求对照
2018-07-12 Use of implicitly declared global variable
2018-07-12 ResolveUrl in external JavaScript file in asp.net project
2018-07-12 data-toggle data-target
2017-07-12 字符编码
2015-07-12 Which are in?
2015-07-12 IQ Test
点击右上角即可分享
微信分享提示