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

📄 set_score.aspx

📁 基于WEB的在线考试系统建立在系统后台的数据库的基础上
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Set_Score.aspx.cs" Inherits="Teacher_Set_Score" %>

<!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\css.css" rel="stylesheet"
        type="text/css" />
    <link href="Style\gridview.css" rel="stylesheet"
        type="text/css" />
        
</head>
<body>
    <form id="form1" runat="server">
    <div align=left>
    <div id="HC" style="width: 795px; height: 105px">
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 789px; height: 104px" >
                                <tr>
                                    <td align="center" style="width: 747px" >
                                        
                                      <div class="HC1">
                                          评阅试卷:</div>
                                        <div class="HC3">
                                            <ul class="FS12">
                                            </ul>
                                            科目:<asp:DropDownList ID="Subject" runat="server" DataSourceID="ObjectDataSource1" DataTextField="SubjectName" DataValueField="SubjectID">
                                            </asp:DropDownList>
                                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 项目 &nbsp;<asp:DropDownList ID="TopicType"
                                                runat="server">
                                                <asp:ListItem Value="0">填空题</asp:ListItem>
                                                <asp:ListItem Value="1">简答题</asp:ListItem>
                                                <asp:ListItem Value="2">问答题</asp:ListItem>
                                            </asp:DropDownList>
                                            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Button ID="Ok" runat="server"
                                                CssClass="subbutton" OnClick="Ok_Click" Text="确认" Width="62px" />
                                            &nbsp;&nbsp;&nbsp;<asp:Button ID="Resub" runat="server" Text="重置" Width="53px" CssClass="subbutton" OnClick="Resub_Click" />
                                            (为了您的方便,已经按把相同的题列为一组)<!--Comments End --></div>
                                  </td>
                                </tr>
      </table>
      </div>
      <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                                                SelectMethod="GetSubjectForTeacher" TypeName="BLL.Subject">
                                                <SelectParameters>
                                                    <asp:SessionParameter Name="TeacherID" SessionField="TeacherID" Type="String" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
      <div id="Div1" style="width: 757px; height: 426px">
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 754px; height: 448px" >
                                <tr>
                                    <td align="center" >
                                        
                                      <div class="HC1">
                                          试卷打分:</div>
                                        <div class="HC3">
                                            <br /><table border="0" cellpadding="0" cellspacing="0" style="height: 351px; width: 907px;" >
                                <tr>
                                    <td align="center" style="height: 372px">
                                        <br />
                                        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                            <ProgressTemplate>
                                                <img src="Images\load.gif" />
                                            </ProgressTemplate>
                                        </asp:UpdateProgress>
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                                        
                                     
                                    
                                            <asp:GridView ID="DataInfo" runat="server"
                                             AutoGenerateColumns="False" Width="873px"
                                              DataKeyNames="ID" Height="28px" AllowPaging="True"
                                               GridLines="Vertical" PageSize="15" OnRowEditing="DataInfo_RowEditing"
                                                OnRowCancelingEdit="DataInfo_RowCancelingEdit" OnRowUpdating="DataInfo_RowUpdating">
                                                    <Columns>
                                                        <asp:BoundField DataField="TopicID" ItemStyle-Width=80px HeaderText="试题编号" />
                                                        <asp:BoundField HeaderText="标准答案" DataField="Keys" ReadOnly="True" />
                                                        <asp:BoundField HeaderText="学生答案" DataField ="UserAnswer" ReadOnly="True" >
                                                            <ItemStyle Width="280px" />
                                                        </asp:BoundField>
                                                        <asp:TemplateField HeaderText="给分">
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="getscore" Width=30px runat="server"></asp:TextBox>
                                                            </EditItemTemplate>
                                                            <ItemTemplate>
                                                                <asp:Label ID="Label1" Width=20px runat="server" Text='<%# Bind("GetScore") %>'></asp:Label>
                                                            </ItemTemplate>
                                                            <ItemStyle Width="50px" />
                                                        </asp:TemplateField>
                                                        <asp:CommandField EditText="&lt;img src=../Admin/Images/Edit.gif border=0 /&gt;"
                                                            ShowEditButton="True" >
                                                            <ItemStyle Width="100px" />
                                                        </asp:CommandField>
                                                    </Columns>
                                                    <RowStyle ForeColor="#003399" />
                                    <HeaderStyle BackColor="#003399" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="#EFEFFF" BorderColor="#003399" />
                                                </asp:GridView> &nbsp; 还有
                    <asp:Label ID="totalNumber" runat="server" Font-Bold="False" Font-Italic="False"
                        ForeColor="Red" Text="0"></asp:Label>
                    &nbsp;&nbsp;项 
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                        &nbsp;<br />
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                                           
                                        
                                  </td>
                                </tr>
      </table>
                                            <br />
                                            <br />
                                            <br />
                                            <br />
                                            <br />
                                            <br />
                                            <ul class="FS12">
                                            </ul>
                                            &nbsp; &nbsp;&nbsp;</div>
                                  </td>
                                </tr>
      </table>
      </div>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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