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

MVC Example

This is a sample for the page rendered by MVC. It displays the news detail. The detail is provided by NewsMVC controller and ~/Views/Global/NewsMVC/Detail.aspx view and routed through MVC URL pattern /NewsMVC/Detail/{id} added as document alias to the same document as the main document. This way, there is no need to provide separate documents for detail view.

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

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

">Back to the list of news