HiddenField Control

HiddenField Control

Previous Home Next

 

HiddenField is a Web Server Control.Which Provied a  hidden information on a Web page.there are two situation useing Hidden field Control-
1.To detect the change ona hiddden data during the post back.
2.To store the information in a hidden field.

Properties:
1.EnableView State:Boolean Values(true ,False)
2.Value:Data which is store.
3.Visible:Boolean Values.
4.runat

 
  

"HiddenField1.Value":The data which is store on web Page.

 HiddenField control
*********************************************************************
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="HiddenField.aspx.cs" Inherits="_Default" %>





    HiddenField Control


    

How to Use ********************************************************************* using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { HiddenField1.Value = "Welcome To R4R World"; Label1.Text = HiddenField1.Value; } }
Previous Home Next