Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining a reference to a HiddenField
Message
De
09/05/2006 17:32:26
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Obtaining a reference to a HiddenField
Divers
Thread ID:
01120549
Message ID:
01120549
Vues:
55
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
Répondre
Fil
Voir

Click here to load this message in the networking platform