Esempio n. 1
0
 public MvcHtmlString DisplayTemplate(HtmlHelper html, int screenOrderFrom = int.MinValue, int screenOrderTo = int.MaxValue, string markerAttribute = null)
 {
     return(new MvcHtmlString(string.Format("<div><img src='/{0}/GetBinaryFile/{1}?pn={2}' {3}/></div>", html.ViewContext.RouteData.Values["Controller"], html.ViewContext.RouteData.Values["id"], html.ViewData.ModelMetadata.PropertyName, UtilsLib.GenerateAttributesString(HtmlAttributesAsDict))));
 }
Esempio n. 2
0
 private static MvcHtmlString ActionLinkFormContent(HtmlHelper htmlHelper, string linkText, HttpVerbs actionVerb, object htmlAttributes, string confMsg)
 {
     return(ActionLinkFormContent(htmlHelper, linkText, actionVerb, UtilsLib.ObjectToCaseSensitiveDictionary(htmlAttributes), confMsg));
 }