Click or drag to resize

Fields Class

This class helps to manage particular fields such as ReadOnly/Hidden/Required. Lot of properties are used to define the lists of fields and the fields colors. The methods should be used after the properties definition to execute the changes on the page fields.
Inheritance Hierarchy
SystemObject
  WorkflowGen.My.Web.UI.WebFormsFields

Namespace:  WorkflowGen.My.Web.UI.WebForms
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 4.0.0.0 (4.0.0.0)
Syntax
public class Fields

The Fields type exposes the following members.

Constructors
  NameDescription
Public methodFields(Page, DataSet)
Constructor which keep the page and get a list all the fields from the DataSet.
Public methodFields(Page, DataSet, String)
Constructor which keep the page and get a list all the fields from the DataSet.
Public methodFields(Page, StateManager, DictionaryString, UserControl)
Constructor which keep the page and get a list all the fields from the page controls.
Top
Properties
  NameDescription
Public propertyArchiveHiddenFieldsPattern
Archive Hidden form field pattern
Public propertyFieldButtonInputIsVisibleInReadOnly
Fields button controls remains visible when in read-only mode
Public propertyFieldsColorization
The colorization method used for coloring the fields
Public propertyHiddenFieldsPattern
Hidden form field pattern
Public propertyReadOnlyBackColor
Background Color for read-only fields
Public propertyReadOnlyBorderColor
Border Color for read-only fields
Public propertyReadOnlyFieldsPattern
Read-Only form field pattern
Public propertyRequiredBackColor
Background Color for required fields
Public propertyRequiredBorderColor
Border Color for required fields
Public propertyRequiredFieldsPattern
Required form field pattern
Public propertyRequiredMessage
Error message on required field
Public propertyWorkflowFileUploadIsChangedToFormArchiveLayout
Used by WorkflowPage.cs to tell that the WorkflowFileUpload mode should be set to Form Archive.
Public propertyWorkflowFileUploadIsEnabledInReadOnly Obsolete.
WorkflowFileUpload control remains enabled when in read-only mode
Top
Methods
  NameDescription
Public methodArchiveHiddenFieldsExecute
Hides the archive hidden fields
Public methodBackupControlStyleProperties
Backup all the style properties of the control in order to be able to invert the control back to original state, only if not postback
Public methodColorizeControl
Colorize a certain control
Public methodHiddenFieldsExecute
Puts fields to hidden
Public methodReadOnlyFieldsExecute
Puts fields to read-only Adds a border and background to read-only fields
Public methodRequiredFieldsExecute
Adds RequiredFielValidators to check the required fields and changes the border colors
Public methodRequiredFieldsExecute(Boolean)
Add validators and change the required fields color
Public methodRestoreControlStyleProperties
Restore all the style properties that were backup'ed for the control
Top
Fields
  NameDescription
Public fieldStatic memberPAGE_VALIDATION_GROUP
Constant used internally for the ValidationGroup property of all generated validators
Public fieldStatic memberVALIDATION_SUMMARY_ID
Constant used internally to determine the ID of the validation summary for the required fields.
Top
See Also