<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Master.master.cs" Inherits="BookDemo.QA.Master" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
    <div>
        当前用户：<asp:Label ID="lblUserName" runat="server" Text="无"></asp:Label>
        <asp:HyperLink ID="hlLogin" runat="server">登陆/切换用户</asp:HyperLink></div>
    <div>
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">首页</asp:HyperLink> |
        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/NewQuestion.aspx">新建提问</asp:HyperLink> | 
        管理员选项：
        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/Admin/Catalogs.aspx">目录管理</asp:HyperLink>
        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Admin/Questions.aspx">提问管理</asp:HyperLink>
        <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/Admin/Users.aspx">用户管理</asp:HyperLink>
        
    </div>
<!-- 搜索 -->
<div>
搜索：<asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
    <asp:Button ID="btnSearch"
    runat="server" Text="搜索" onclick="btnSearch_Click" />
</div>
<div>
    搜索优化：<asp:TextBox ID="txtKeyword2" runat="server"></asp:TextBox>
    <asp:Button ID="btnSearch2"
    runat="server" Text="缓存搜索" onclick="btnSearch2_Click"/>
    <asp:Button ID="btnClearCache" runat="server" onclick="btnClearCache_Click" 
        Text="清空缓存" />
</div>
    <hr />
    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
    </asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
