ASP.NET MVC案例教程——攔截器 Filter
阿新 • • 發佈:2019-01-27
1<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReleaseSucceed.aspx.cs" Inherits="MVCDemo.Views.Announce.ReleaseSucceed"%> 2<%@ Import Namespace="MVCDemo.Models.Entities"%> 3
4<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > 5
6<html xmlns="http://www.w3.org/1999/xhtml"> 7<head runat="server"> 8 <title></title> 9</head>10<body>11 <% AnnounceInfo announce = ViewData["Announce"] as AnnounceInfo; %>12 <div>13 <h1>MVC公告發布系統——釋出公告成功</h1>14 <dl >15 <dt>ID:</dt>16 <dd><%= announce.ID %></dd>17 <dt>標題:</dt>18 <dd><%= announce.Title %></dd>19 <dt>類別ID:</dt>20 <dd><%= announce.Category %></dd>21 <dt>內容:</dt>22 <dd><%= announce.Content %></dd>23 <dt>釋出時間:</dt>24 <dd><%= ViewData["Time"] %></dd>25 </dl>26 <p><%= ViewData["ExecutingLogger"] %></p>27 <p><%= ViewData["ExecutedLogger"] %></p>28 </div>29</body>30</html>
4<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
6<html xmlns="http://www.w3.org/1999/xhtml"> 7<head runat="server"> 8 <title></title> 9</head>10<body>11 <% AnnounceInfo announce = ViewData["Announce"] as AnnounceInfo; %>12 <div>13 <h1>MVC公告發布系統——釋出公告成功</h1>14 <dl