示例#1
0
        public static IHtmlString IsChecked(object objValue, int compareValue)
        {
            NonEncodedHtmlString blank = new NonEncodedHtmlString("");

            if (objValue == null)
                return blank;
            else
            {
                if (objValue is int && (int)objValue == compareValue)
                    return new NonEncodedHtmlString("checked");
                else
                    return blank;
            }
        }
 public IFieldConfiguration WithHint(string hint)
 {
     Hint = new NonEncodedHtmlString(HttpUtility.HtmlEncode(hint));
     return this;
 }
示例#3
0
        public static IHtmlString IsChecked(object objValue)
        {
            NonEncodedHtmlString blank = new NonEncodedHtmlString("");

            if (objValue == null)
                return blank;
            else
            {
                if (objValue is Boolean && (bool)objValue == true)
                    return new NonEncodedHtmlString("checked");
                else
                    return blank;
            }
        }