Click or drag to resize
IFormComponentBinderAddModelStateError Method
Adds key with errorMessage to the model state.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
void AddModelStateError(
	string key,
	string errorMessage
)

Parameters

key
Type: SystemString
errorMessage
Type: SystemString
See Also