C# 클래스 Mvc.Honeypot.HtmlHelpers

파일 보기 프로젝트 열기: dejanstojanovic/MVC-Honeypot

공개 메소드들

메소드 설명
GetHashedPropertyName ( string PropertyName ) : string

Calculates MD5 HASH

HoneyPotField ( this helper, string name, object value, string inputCss = null, InputType fieldType = InputType.Text, string honeypotCss = null, InputType honeypotType = InputType.Hidden ) : System.Web.Mvc.MvcHtmlString

Renders out field with honeypot security check enabled

메소드 상세

GetHashedPropertyName() 공개 정적인 메소드

Calculates MD5 HASH
public static GetHashedPropertyName ( string PropertyName ) : string
PropertyName string Name of property that needs to be hashed
리턴 string

HoneyPotField() 공개 정적인 메소드

Renders out field with honeypot security check enabled
public static HoneyPotField ( this helper, string name, object value, string inputCss = null, InputType fieldType = InputType.Text, string honeypotCss = null, InputType honeypotType = InputType.Hidden ) : System.Web.Mvc.MvcHtmlString
helper this HtmlHelper which will be extended
name string Name of field. Should match model field of string type
value object Value of the field
inputCss string
fieldType InputType
honeypotCss string
honeypotType InputType
리턴 System.Web.Mvc.MvcHtmlString