danxuan.aspx

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

ASPX
125
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DanXuan.aspx.cs" Inherits="Admin_DanXuan"%>


<!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 id="Head1" runat="server">
    <title>单选题</title>
    <link href="../Style/QuestionForm.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:MultiView ID="MultiView1" runat="server">
            <asp:View ID="AddView" runat="server">
            <br />
               <br />
                <table class="Question">
               <tr><th colspan="2">添加单选题</th></tr> 
                    <tr>
                        <td>科目:</td>
                        <td>    <asp:Label ID="AddSubjectLabel" runat="server"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>章节:</td>
                        <td>  <asp:Label ID="AddChapterLabel" runat="server" ></asp:Label></td>
                    </tr>
                    <tr>
                        <td>难度: </td>
                        <td> <asp:Label ID="AddHardLabel" runat="server"></asp:Label></td>
                    </tr>
                    <tr>
                    <td>内容:<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="AddContentTextBox"
                            ErrorMessage="RequiredFieldValidator" ValidationGroup="1">*</asp:RequiredFieldValidator></td>
                    <td><asp:TextBox ID="AddContentTextBox" runat="server" Height="100px" TextMode="MultiLine" Width="350px"></asp:TextBox></td>
                    </tr>
                    <tr>
                    <td>   <asp:Button ID="AddAddChoiceButton" runat="server" OnClick="AddAddChoiceButton_Click" Text="添加选项" Width="77px" ValidationGroup="2"/>
                        <br />
                        <asp:Button ID="AddRemoveChoiceButton" runat="server" OnClick="AddRemoveChoiceButton_Click" Text="删除选中项" Width="75px"/>   
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="AddChoiceTextBox"
                            ErrorMessage="RequiredFieldValidator" ToolTip="2">*</asp:RequiredFieldValidator>
                    </td>
                    <td><asp:TextBox ID="AddChoiceTextBox" runat="server" Height="100px" TextMode="MultiLine" Width="350px"></asp:TextBox></td>
                    </tr>
                     <tr>  
                     <td>
                         </td>
                    <td>  <asp:RadioButtonList ID="AddRadioButtonList" runat="server" Height="100%" Width="100%">
                </asp:RadioButtonList>
                    </td>
                    </tr>
                  <tr>
                    <td>              <asp:Button ID="AddAddQuestionButton" runat="server" OnClick="AddAddQuestionButton_Click"
                    Text="添加试题" ValidationGroup="1" /></td>
                    <td><asp:Label ID="AddMessageLabel" runat="server" CssClass="Message"></asp:Label></td>
                    </tr>
                </table>
           </asp:View>
            <asp:View ID="UpdateView" runat="server">
                        <br />
               <br />
                <table class="Question">
               <tr><th colspan="2">
                   更新单选题</th></tr> 
                    <tr>
                        <td>难度: </td>
                        <td> <asp:DropDownList ID="UpdateHardDropDownList" runat="server" Width="42px">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                </asp:DropDownList></td>
                    </tr>
                    <tr>
                    <td>内容:<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UpdateContentTextBox"
                            ErrorMessage="RequiredFieldValidator" ValidationGroup="1">*</asp:RequiredFieldValidator></td>
                    <td><asp:TextBox ID="UpdateContentTextBox" runat="server" Height="100px" TextMode="MultiLine" Width="350px"></asp:TextBox></td>
                    </tr>
                    <tr>
                    <td><asp:Button ID="UpdateAddChoiceButton" runat="server" OnClick="UpdateAddChoiceButton_Click" Text="添加选项" ValidationGroup="2"/><br />
                        <br />
                        
                        <asp:Button ID="UpdateRemoveChoiceButton" runat="server" OnClick="UpdateRemoveChoiceButton_Click" Text="删除选中项" Width="77px"/>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="UpdateChoiceTextBox"
                            ErrorMessage="RequiredFieldValidator" ValidationGroup="2">*</asp:RequiredFieldValidator></td>
                    <td><asp:TextBox ID="UpdateChoiceTextBox" runat="server" Height="100px" TextMode="MultiLine" Width="350px"></asp:TextBox></td>
                    </tr>
                     <tr>  
                     <td>
                         </td>
                    <td> <asp:RadioButtonList ID="UpdateRadioButtonList" runat="server" Width="100%">
                </asp:RadioButtonList>
                    </td>
                    </tr>
                  <tr>
                    <td><asp:Button ID="UpdateUpdateButton" runat="server" Text="更新试题" OnClick="UpdateUpdateButton_Click" ValidationGroup="1" /></td>
                    <td>
                       <asp:Label ID="UpdateMessageLabel" runat="server" CssClass="Message"></asp:Label></td>
                    </tr>
                </table>
            </asp:View>
            <asp:View ID="DeleteView" runat="server">
                <br />
                <br />
                <br />
                <asp:Label ID="DeleteMessageLabel" runat="server" CssClass="Message"></asp:Label>
            </asp:View>
            <asp:View ID="ViewView" runat="server">
                           <table class="Question">
                    <tr>
                        <th>
                            预览单选题</th>
                    </tr>
                    <tr>
                        <td>
                            <asp:Literal ID="ViewContentLiteral" runat="server"></asp:Literal></td>
                    </tr>
                </table> 
                </asp:View>
        </asp:MultiView></div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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