Click or drag to resize

DataContextAddPageDefinedFieldInitialization Method

Adds field initialization, and optional validation, from a page-defined (e.g., loaded from database) parameter definition.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public void AddPageDefinedFieldInitialization(
	string fieldName,
	string initialValue,
	string validationPattern = null,
	string errorMessage = null
)
View Source

Parameters

fieldName  String
Target field name.
initialValue  String
Javascript based initial value for field.
validationPattern  String  (Optional)
Reg-ex based validation pattern, if any.
errorMessage  String  (Optional)
Optional error message to display when pattern fails.
See Also