Go to DotNetFunda.com
 Online : 2779 |  Welcome, Guest!   Login
 
<<= Please see left side tutorials menu.

  • Nominate yourself for "Agile Software Development using Scrum" online session for FREE, click here.

  • Download OOPS and ASP.NET Online training session video and PPT from here.


Silverlight Tutorials | Report a Bug in the Tutorial

Interesting?   Share and Bookmark this

asp:HiddenField control
HiddenField is used to create a hidden field in the form.
 
Ideally HiddenField is used to create a hidden field in the form. When it is rendered on the page, it is implemented through <input type=hidden> HTML tag.
DEMO : HiddenField Show Source Code
Ex. Example of Label Control
            <asp:HiddenField ID="HiddenField1" runat="Server" Value="This is the Value of Hidden field" />
            <asp:Button ID="Button1" runat="Server" OnClick="ChangeLabelText" Text="Change Label Text to Hiidden Field Value" />                                        
                    
            // CODE BEHIND
            // Fires when Button is clicked
            protected void ChangeLabelText(object sender, EventArgs e)
            {
                Label1.Text = hiddeFieldValue.Value;
            }
                    




About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)