Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining a reference to a HiddenField
Message
From
09/05/2006 17:32:26
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Obtaining a reference to a HiddenField
Miscellaneous
Thread ID:
01120549
Message ID:
01120549
Views:
49
In a Web form, I am looking for a way to obtain a reference to a HiddenField by the use of its parent, thus the form name. As far as I know, there doesn't seem to be a way to accomplish that. The only way I have found is to use the control directly.

Here is an example:
<form id="Form1" method="Post" action="SaveMessage.aspx" runat="server">
<asp:HiddenField ID="Language" runat="server" />
</form>
Having that, the Page_Load() event can use this syntax to set the value of the hidden field:
Language.value="something"
But, what I need is this:
Form1.Language.value="something"
Why is this not possible?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Reply
Map
View

Click here to load this message in the networking platform