EAPUtilRegisterHiddenField Method (WebControl, String, String) |
Create a hidden control nested inside the specified control.
This method should be used instead
of the .Net Page.RegisterHiddenField() method if the value will need to be
accessed on the client because the .Net method (as of v1.1) does not set
an id attribute on the field. That's OK w/ Internet Explorer, but makes
the field unavailable to javascript in Firefox.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntaxpublic static HtmlInputHidden RegisterHiddenField(
WebControl parent,
string name,
string value
)
Public Shared Function RegisterHiddenField (
parent As WebControl,
name As String,
value As String
) As HtmlInputHidden
Parameters
- parent
- Type: System.Web.UI.WebControlsWebControl
The control under which to add the hidden input. - name
- Type: SystemString
The name for the field. This will also be used for the field's id. - value
- Type: SystemString
The value for the field.
Return Value
Type:
HtmlInputHiddenThe newly created hidden input if successfully created and added to control.
See Also