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))); }
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))); }
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))); }