Beispiel #1
0
 /// <summary>
 /// Render the specified view object to HTML
 /// </summary>
 /// <param name="html">The html helper object.</param>
 /// <param name="view">The view to render.</param>
 public static void RenderViewResults(this HtmlHelper html, ContentViewDecorator view)
 {
     html.RenderQueryResults(view.GetItems());
 }
Beispiel #2
0
 /// <summary>
 /// Renders the data items that returns by a content query.
 /// </summary>
 /// <param name="html">The html helper object.</param>
 /// <param name="view">The content view object that use to execute query.</param>
 /// <param name="query">The content query object.</param>
 public static void RenderQueryResults(this HtmlHelper html, ContentViewDecorator view, ContentQuery query)
 {
     RenderQueryResults(html, view.GetItems(query));
 }