public static MvcHtmlString PasswordBindFor <TModel, TProperty>(this HtmlHelper <TModel> htmlHelper, Expression <Func <TModel, TProperty> > expression, object htmlAttributes) { var bind = new KnockoutBind(null, htmlAttributes); bind.AddBind("value", ExpressionHelper.GetExpressionText(expression)); return(InputExtensions.PasswordFor(htmlHelper, expression, bind)); }
public static MvcHtmlString PasswordBind(this HtmlHelper htmlHelper, string name, object value, object htmlAttributes) { var bind = new KnockoutBind(null, htmlAttributes); bind.AddBind("value", name); return(InputExtensions.Password(htmlHelper, name, value, bind)); }