questionmanager.aspx

来自「本在线考试系统采用了面向对象的分析和设计」· ASPX 代码 · 共 74 行

ASPX
74
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuestionManager.aspx.cs" Inherits="Admin_ChapterTree" %>

<%@ Register Src="../UserControls/EditTreeView.ascx" TagName="EditTreeView" TagPrefix="uc1" %>

<!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>
    <link href="../Style/QuestionManager.css" rel="stylesheet" type="text/css" runat="server" />
    <link href="../Style/GridView.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../JS/QuestionManage.js"></script>
</head>
<body>
    <form id="form1" runat="server">
  <div id="Head">
            小寒考试系统<div class="BackLink"><a href="Subject.aspx">返回管理页面</a></div></div>
             <div class="Line"></div>
    <div id="Main">
    <div id="ChapterTree">
        <uc1:EditTreeView id="EditTreeView1" runat="server"></uc1:EditTreeView>
     </div>
    <div id="Content">
    <div id="QuestionMap">
        <asp:Label ID="subjectLB" runat="server" Text="Label"></asp:Label>&gt;&gt;
        <asp:Label ID="chapterLB" runat="server" Text="Label"></asp:Label>&gt;&gt;
        <asp:Label ID="questionTypeLB" runat="server" Text="Label"></asp:Label>&gt;&gt;
        <asp:Label ID="hardLB" runat="server" Text="Label"></asp:Label>
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;题型:<asp:DropDownList ID="questionTypeDD" runat="server" AutoPostBack="True" OnSelectedIndexChanged="questionTypeDD_SelectedIndexChanged">
            <asp:ListItem Selected="True" Value="DanXuan">单选题</asp:ListItem>
            <asp:ListItem Value="DuoXuan">多选题</asp:ListItem>
            <asp:ListItem Value="PanDuan">判断题</asp:ListItem>
            <asp:ListItem Value="TianKong">填空题</asp:ListItem>
            <asp:ListItem Value="JianDa">简答题</asp:ListItem>
        </asp:DropDownList>
        难度:<asp:DropDownList ID="hardDD" runat="server" AutoPostBack="True" OnSelectedIndexChanged="hardDD_SelectedIndexChanged">
            <asp:ListItem Selected="True" Value="1">1</asp:ListItem>
            <asp:ListItem Value="2">2</asp:ListItem>
            <asp:ListItem Value="3">3</asp:ListItem>
        </asp:DropDownList>
    <input type="button" onclick="OpenAddWindow()"  value="add"/></div>
    <div id="QuestionList">
       <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="GridView">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="题号" />
                <asp:BoundField DataField="Content" HeaderText="内容"  HtmlEncode="false"/>
                <asp:TemplateField HeaderText="删除">
                <ItemTemplate>
                 <a href="javascript:ShowMaintainWindow('<%#Eval("QuestionType")%>','Delete',<%#Eval("ID")%>)" >删除</a>
                </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="修改">
                 <ItemTemplate>
                <a href="javascript:ShowMaintainWindow('<%#Eval("QuestionType")%>','Update',<%#Eval("ID")%>)" >修改</a>
                </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="预览">
                <ItemTemplate>
                 <a href="javascript:ShowMaintainWindow('<%#Eval("QuestionType")%>','View',<%#Eval("ID")%>)" >预览</a>
                </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
   </div>  
    </div>
     <div class="Line"></div>
            <div id="Bottom">
            版权所有 2008</div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?