<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SolvedQuestionList.ascx.cs"
    Inherits="BookDemo.QA.SolvedQuestionList" %>
<%@ OutputCache Duration="300" VaryByParam="None" SqlDependency="BookDemo:QAQuestion" %>
<asp:Panel ID="Panel2" runat="server" GroupingText="已解决提问列表">
    缓存时间：<%= DateTime.Now.ToString() %>
    <asp:GridView ID="gvSolvedQuestions" runat="server" AutoGenerateColumns="False">
        <EmptyDataTemplate>
            无“已解决提问”信息
        </EmptyDataTemplate>
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="~/Question.aspx?id={0}"
                DataTextField="Title" HeaderText="标题" />
            <asp:TemplateField HeaderText="类别">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("QACatalog.Name") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="PostDateTime" HeaderText="提问时间" />
        </Columns>
    </asp:GridView>
</asp:Panel>
