<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="Views_Global_NewsMVC_List" MasterPageFile="Root.master" %>

MVC Example

This is a sample for the page rendered by MVC. It displays the news list. The list is routed by using Route URL pattern /NewsMVC/List to provide extension-less URL, and then displayed with an MVC page template type using NewsMVC controller and ~/Views/Global/NewsMVC/List.aspx view.

<% foreach (var doc in NewsList) { %>

"> <%=doc.GetValue("NewsTitle")%>

<%=doc.GetValue("NewsText")%>

<% } %>