Если вы взяли последний исходный код, вы должны найти примеры в папке dotnet / test.
ErrorMessage можно установить через свойство CustomTranslations, например здесь: recaptcha-plugins / dotnet / test / CustomTranslation.aspx.cs
protected void Page_Init(object sender, EventArgs e)
{
var customTranslation = new Dictionary<string, string>();
customTranslation.Add("instructions_visual", "Scrivi le due parole:");
customTranslation.Add("incorrect_try_again", "Scorretto. Riprova.");
RecaptchaControl.CustomTranslations = customTranslation;
}
ErrorMessage будет автоматически отображаться в ValidationSummary, потому что RecaptchaControl реализует интерфейс IValidator.