You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
433 B
17 lines
433 B
using System; |
|
|
|
namespace NaughtyAttributes |
|
{ |
|
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] |
|
public class ValidateInputAttribute : ValidatorAttribute |
|
{ |
|
public string CallbackName { get; private set; } |
|
public string Message { get; private set; } |
|
|
|
public ValidateInputAttribute(string callbackName, string message = null) |
|
{ |
|
CallbackName = callbackName; |
|
Message = message; |
|
} |
|
} |
|
}
|
|
|