MarkItUp.SingleUserBlog.Web/Administration/ManageComments.aspx

(完整代码) 1KB

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageComments.aspx.cs" Inherits="MarkItUp.SingleUserBlog.Web.Administration.ManageComments" Title="Manage Comments" %>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<h2>Manage Comments</h2>

    <asp:GridView ID="CommentsGrid" runat="server" AutoGenerateColumns="False" Width="100%" DataKeyNames="ID" AllowPaging="True" PageSize="25"
    OnRowEditing="CommentsGrid_RowEditing" OnRowDataBound="CommentsGrid_RowDataBound" 
    OnRowUpdating="CommentsGrid_RowUpdating" OnRowCancelingEdit="CommentsGrid_RowCancelingEdit" 
    OnPageIndexChanging="CommentsGrid_PageIndexChanging" OnRowCommand="CommentsGrid_RowCommand">
        <Columns>
            <asp:BoundField DataField="UserName" HeaderText="Name" ReadOnly="True" />
            <asp:BoundField DataField="UserUrl" HeaderText="Url" />
            <asp:BoundField DataField="DisplayName" HeaderText="Subject" ReadOnly="True"  />
           <asp:TemplateField HeaderText="Comment Excerpt">
           <ItemTemplate>
                <asp:Literal ID="TxtDescription" runat="server"></asp:Literal>
           </ItemTemplate>
           <EditItemTemplate>
                <asp:TextBox ID="TxtDescription" runat="server" Columns="40" Rows="5" TextMode="MultiLine" ></asp:TextBox>
           </EditItemTemplate>
           </asp:TemplateField>
            <asp:TemplateField HeaderText="Approved">
            <ItemTemplate>
                <asp:CheckBox ID="ChkIsApproved" runat="server" Enabled="false" />
            </ItemTemplate>
            <EditItemTemplate>
                <asp:CheckBox ID="ChkIsApproved" runat="server" />
            </EditItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ShowEditButton="True" />
            <asp:ButtonField CommandName="DeleteComment" Text="Delete" />
        </Columns>
    </asp:GridView>
</asp:Content>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。