Пример #1
0
 internal static string StringTemplate(HtmlHelper html) {
     return html.Encode(html.ViewContext.ViewData.TemplateInfo.FormattedModelValue);
 }
Пример #2
0
 internal static string UrlTemplate(HtmlHelper html) {
     return String.Format(CultureInfo.InvariantCulture,
                          "<a href=\"{0}\">{1}</a>",
                          html.AttributeEncode(html.ViewContext.ViewData.Model),
                          html.Encode(html.ViewContext.ViewData.TemplateInfo.FormattedModelValue));
 }
 public static string String(HtmlHelper html)
 {
     return html.Encode(html.Context.ViewData.Template.Value);
 }