Click or drag to resize

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)
Syntax
public static HtmlInputHidden RegisterHiddenField(
	WebControl parent,
	string name,
	string value
)

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: HtmlInputHidden
The newly created hidden input if successfully created and added to control.
See Also