Esempio n. 1
0
 /// <summary>
 /// Text(验证)
 /// </summary>
 /// <param name="id">id/name</param>
 /// <param name="size">大小</param>
 /// <param name="validation">验证类型</param>
 /// <param name="tip">提示</param>
 /// <param name="description">描述</param>
 /// <returns></returns>
 public static IHtmlString TextKeyUp(string id, TextSize size, ValidationText validation, string tip = "", string description = "")
 {
     return
         new HtmlString(string.Format("<input type=\"text\" class=\"{1} {2}\" id=\"{0}\" name=\"{0}\"/>", id,
             size, validation.ToString())).AddTitle(tip, description);
 }