Example #1
0
        public static HtmlString CtrlDropDown(this HtmlHelper html, string Label, String ListOptions, string Id)
        {
            var ctrl = new CtrlDropDownModel
            {
                Label       = Label,
                ListOptions = ListOptions,
                Id          = Id
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
Example #2
0
        public static HtmlString CtrlDropDown(this HtmlHelper html, string id, string label, string listId)
        {
            var ctrl = new CtrlDropDownModel
            {
                Id     = id,
                Label  = label,
                ListId = listId
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
Example #3
0
        public static HtmlString CtrlDropDown(this HtmlHelper html, string id, string label, string listId, string columnDataName = "", string onClickFunction = "")
        {
            var ctrl = new CtrlDropDownModel
            {
                Id             = id,
                Label          = label,
                ListId         = listId,
                ColumnDataName = columnDataName
            };

            return(new HtmlString(ctrl.GetHtml()));
        }
Example #4
0
        public static HtmlString CtrlDropDown(this HtmlHelper html, string id, string label, string service = "", bool required = false, string mensajeValidacion = "")
        {
            var ctrl = new CtrlDropDownModel
            {
                Id                = id,
                Label             = label,
                Required          = required ? "required" : "",
                MensajeValidacion = mensajeValidacion,
                CampoRequerido    = required ? "*" : "",
                Service           = service
            };

            return(new HtmlString(ctrl.GetHtml()));
        }