Ejemplo n.º 1
0
    /// <summary>
    /// 显示字段验证错误信息
    /// </summary>
    /// <param name="form">要呈现错误信息的表单</param>
    /// <param name="error">要呈现的错误信息</param>
    protected virtual void ShowError( HtmlForm form, FormValidationError error )
    {
      var container = FindErrorMessageContainer( form, error.Name );

      if ( container != null )
        ShowErrorMessage( container, error.Messages );
    }
Ejemplo n.º 2
0
        /// <summary>
        /// 显示字段验证错误信息
        /// </summary>
        /// <param name="form">要呈现错误信息的表单</param>
        /// <param name="error">要呈现的错误信息</param>
        protected virtual void ShowError(HtmlForm form, FormValidationError error)
        {
            var container = FindErrorMessageContainer(form, error.Name);

            if (container != null)
            {
                ShowErrorMessage(container, error.Messages);
            }
        }