⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 duoxuan.aspx

📁 本在线考试系统采用了面向对象的分析和设计
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DuoXuan.aspx.cs" Inherits="Admin_DuoXuan"%>
<!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/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="RequiredFieldValidator1" 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="添加选项" ValidationGroup="2"/><br />
                        <br />
                        <asp:Button ID="AddRemoveChoiceButton" runat="server" OnClick="AddRemoveChoiceButton_Click" Text="删除选中项" Width="75px"/>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="AddChoiceTextBox"
                            ErrorMessage="RequiredFieldValidator" ValidationGroup="2">*</asp:RequiredFieldValidator></td>
                    <td style="width: 362px"><asp:TextBox ID="AddChoiceTextBox" runat="server" Height="100px" TextMode="MultiLine" Width="350px"></asp:TextBox></td>
                    </tr>
                     <tr>  
                     <td></td>
                    <td><asp:CheckBoxList ID="AddCheckBoxList" runat="server" Width="100%">
                </asp:CheckBoxList></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 style="width: 362px"> <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="RequiredFieldValidator3" 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><br />
                <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="76px"/>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" 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:CheckBoxList ID="UpdateCheckBoxList" runat="server" Width="100%">
                </asp:CheckBoxList></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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -