public static string SectionSetting(this HtmlHelper htmlHelper, ModuleSetting moduleSetting, string name, object value, bool fixedTextBoxWidth)
        {
            Type settingType = moduleSetting.GetRealType();

            switch (settingType.FullName)
            {
                case "System.String":
                    return fixedTextBoxWidth ? CreateSettingTextBox(htmlHelper, name, value, 300) : CreateSettingTextBox(htmlHelper, name, value, null);
                case "System.Int16":
                case "System.Int32":
                    return fixedTextBoxWidth ? CreateSettingTextBox(htmlHelper, name, value, 50) : CreateSettingTextBox(htmlHelper, name, value, null);
                case "System.Boolean":
                    return CreateSettingCheckBox(name, value);
                default:
                    return CreateCustomControl(name, settingType, value);
            }
        }
 public static string SectionSetting(this HtmlHelper htmlHelper, ModuleSetting moduleSetting, string name, object value)
 {
     return SectionSetting(htmlHelper, moduleSetting, name, value, false);
 }