Ejemplo n.º 1
0
        public static MvcHtmlString Image(this HtmlHelper helper, String name, String path, IDictionary <String, Object> htmlAttributes)
        {
            List <HtmlExtentionAttribute> attrs = new List <HtmlExtentionAttribute>();

            attrs.Add(ExtensionBase.CreateHtmlExtensionAttribute("src", "..\\" + path));
            attrs.Add(ExtensionBase.CreateHtmlExtensionAttribute("name", name));
            return(ExtensionBase.CreateMvcString(ExtensionBase.CreatTagBuilder("img", htmlAttributes, attrs)));
        }
Ejemplo n.º 2
0
        public static MvcHtmlString Span(this HtmlHelper helper, String name, Object value, IDictionary <String, Object> htmlAttributes)
        {
            List <HtmlExtentionAttribute> attrs = new List <HtmlExtentionAttribute>();

            attrs.Add(ExtensionBase.CreateHtmlExtensionAttribute("name", name));
            return(ExtensionBase.CreateMvcString(
                       ExtensionBase.CreatTagBuilder(
                           "span",
                           htmlAttributes,
                           attrs,
                           value)));
        }
Ejemplo n.º 3
0
        static MvcHtmlString CreateButton(String name, String type, Object value, IDictionary <String, Object> htmlAttributes)
        {
            List <HtmlExtentionAttribute> attrs = new List <HtmlExtentionAttribute>();

            attrs.Add(ExtensionBase.CreateHtmlExtensionAttribute("name", name));
            attrs.Add(ExtensionBase.CreateHtmlExtensionAttribute("type", type));
            return(ExtensionBase.CreateMvcString(
                       ExtensionBase.CreatTagBuilder(
                           "Button",
                           htmlAttributes,
                           attrs,
                           value)));
        }