<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCBlogo.NET.BO.BlogEntry>>" %>

<%@ Import Namespace="Spencer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolderPage" runat="server">

    <h3>管理随笔、文章</h3>
    <p>
        <%= Html.ActionLink("新建博客", "AdminBlogCreate")%>
    </p>
   <%=Html.GridView<MVCBlogo.NET.BO.BlogEntry>(Model,new string[]{"title","datepublished"},
                                               new GridViewOption()
                                               {
                                                    EditAction="AdminBlogEdit",
                                                    DeleteAction ="AdminBlogDelete",
                                                    Columns=new string[]{"标题","发布日期"}
                                                })
   %>
</asp:Content>

