postview.ascx
来自「个人博客系统」· ASCX 代码 · 共 31 行
ASCX
31 行
<%@ Control Language="C#" AutoEventWireup="true" EnableViewState="false" Inherits="BlogEngine.Core.Web.Controls.PostViewBase" %>
<div class="post xfolkentry">
<div class="header">
<h3><a href="<%=Post.RelativeLink %>" class="taggedlink"><%=Post.Title %></a></h3>
<div class="date">
Posted on
<%=Post.DateCreated.ToString("MMMM d, yyyy HH:mm")%>
by <a href="<%=VirtualPathUtility.ToAbsolute("~/") + "author/" + Post.Author %>.aspx">
<%=Post.Author %> </a>
</div>
</div>
<div class="content">
<%-- <%=Body %> This has been depreciated so please don't use it anymore. --%>
<%-- Instead use the line below --%>
<asp:PlaceHolder ID="BodyContent" runat="server" />
<%=Rating %><br />
</div>
<div class="footer">
Tags: <%=TagLinks(", ") %>
<br />
Actions:
<%=AdminLinks %>
<a rel="nofollow" href="mailto:?subject=<%=Post.Title %>&body=Thought you might like this: <%=Post.AbsoluteLink.ToString() %>">E-mail</a> | <a rel="nofollow" href="<%=Post.RelativeLink %>#comment"><%=Resources.labels.comments %> (<%=Post.ApprovedComments.Count %>)</a>
|<a rel="nofollow" href="http://www.dzone.com/links/add.html?url=<%=Server.UrlEncode(Post.AbsoluteLink.ToString()) %>&title=<%=Server.UrlEncode(Post.Title) %>">dzone it!</a>
</div>
</div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?