The GEN:FieldValue tag places the value of a database field on the generated page. Use the Properties dialog to specify the actual field whose value is to be displayed.
|
|
The FieldValue tag displays field values from a database record. These controls can display data as well as input data. |
The FieldValue tag can be used either by itself, within a Record tag or within a Table tag. If the FieldValue tag is used by itself, the generated code will incorporate each FieldValue within an ASP.NET control tag for a record. To optimize the application, you can enclose the FieldValue code generation tag within a Record code generation tag. Enclosing the FieldValue tag within a Record tag is faster because the FieldValue tags can inherit properties from the Record tag’s properties.
The FieldValue code generation tag generates ASP.NET control tags in the ASPX or ASCX file. The specific ASP.NET control tags generated depend on the field value type (e.g., text, image). The primary ASP.NET control tag may be followed by some validator control tags (e.g., RequiredFieldValidator).
The FieldValue tag has by far the most properties of any code generation tag. For details, see:
FieldValue Control Type Properties
FieldValue Display Format Properties
Label and Literal Control Options
File Upload and File Download Control Options
FieldValue Initial Value Properties
FieldValue Pass-Through Attributes
<GEN:FieldValue Name=”FirstName”/>