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

📄 modifywxtk.aspx

📁 本系统实现了网上考试的目的
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModifyWXTK.aspx.cs" Inherits="ModifyWXTK" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <span style="font-size: 24pt"><strong>查看/修改完型填空题</strong></span><br />
        <br />
        <table style="width: 496px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
            <tr>
                <td colspan="3" style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid">
                    题干ID:<asp:TextBox ID="tbWXID" runat="server" ReadOnly="True" Width="173px"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="3" style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid">
                    题干: &nbsp;&nbsp;
                    <asp:TextBox ID="tbWXName" runat="server" TextMode="MultiLine" Width="771px" Height="207px"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="3" style="border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid">
                    当前试题分类ID:<asp:TextBox ID="tbOldClassifyID" runat="server" ReadOnly="True" Width="80px"></asp:TextBox>&nbsp;
                    当前试题分类名称:<asp:TextBox ID="tbOldClassifyName" runat="server" ReadOnly="True" Width="100px"></asp:TextBox><br />
                    <asp:Label ID="Label1" runat="server" Text="修改试题分类ID:"></asp:Label>
                    <asp:DropDownList ID="ddlNewClassifyID" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlNewClassifyID_SelectedIndexChanged"
                        Width="85px">
                    </asp:DropDownList>
                    &nbsp;<asp:Label ID="Label2" runat="server" Text="相应试题分类名称:" Width="144px"></asp:Label>
                    <asp:TextBox ID="tbNewClassifyName" runat="server" ReadOnly="True" Width="96px"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="3" style="height: 29px; border-top-style: solid; border-right-style: solid; border-left-style: solid; text-align: center; border-bottom-style: solid;">
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    &nbsp; &nbsp; &nbsp; &nbsp;
                    <asp:CheckBox ID="cbIfIssue" runat="server" Text="是否发布" />
                    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<asp:ImageButton ID="imbtnOK" runat="server"
                        ImageUrl="~/images/btn_sure_1.gif" OnClick="imbtnOK_Click" />
                    <asp:ImageButton ID="imbtnCancel" runat="server" ImageUrl="~/images/btn_cancel_1.gif"
                        OnClick="imbtnCancel_Click" /></td>
            </tr>
            <tr>
                <td colspan="3" style="border-top-style: solid; border-right-style: solid; border-left-style: solid; height: 129px; border-bottom-style: solid">
                    &nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        DataKeyNames="ID,WXID" DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" Width="795px">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                                SortExpression="ID" />
                            <asp:BoundField DataField="WXNumber" HeaderText="题号" ReadOnly="True" SortExpression="WXNumber" />
                            <asp:BoundField DataField="A" HeaderText="选项A" SortExpression="A" />
                            <asp:BoundField DataField="B" HeaderText="选项B" SortExpression="B" />
                            <asp:BoundField DataField="C" HeaderText="选项C" SortExpression="C" />
                            <asp:BoundField DataField="D" HeaderText="选项D" SortExpression="D" />
                            <asp:BoundField DataField="Answer" HeaderText="答案" SortExpression="Answer" />
                            <asp:BoundField DataField="Score" HeaderText="分值" SortExpression="Score" />
                            <asp:BoundField DataField="WXID" HeaderText="题号ID" ReadOnly="True" SortExpression="WXID" />
                            <asp:CommandField ShowEditButton="True" />
                        </Columns>
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#999999" />
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:testonlineConnectionString %>"
                        DeleteCommand="DELETE FROM [WXTKDetail] WHERE [ID] = @ID" InsertCommand="INSERT INTO [WXTKDetail] ([A], [B], [C], [D], [Answer], [Score], [WXID], [WXNumber]) VALUES (@A, @B, @C, @D, @Answer, @Score, @WXID, @WXNumber)"
                        SelectCommand="SELECT [ID], [A], [B], [C], [D], [Answer], [Score], [WXID], [WXNumber] FROM [WXTKDetail] WHERE ([WXID] = @WXID) ORDER BY [WXNumber]"
                        UpdateCommand="UPDATE [WXTKDetail] SET [A] = @A, [B] = @B, [C] = @C, [D] = @D, [Answer] = @Answer, [Score] = @Score, [WXID] = @WXID, [WXNumber] = @WXNumber WHERE [ID] = @ID">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="tbWXID" Name="WXID" PropertyName="Text" Type="String" />
                        </SelectParameters>
                        <DeleteParameters>
                            <asp:Parameter Name="ID" Type="Int32" />
                        </DeleteParameters>
                        <UpdateParameters>
                            <asp:Parameter Name="A" Type="String" />
                            <asp:Parameter Name="B" Type="String" />
                            <asp:Parameter Name="C" Type="String" />
                            <asp:Parameter Name="D" Type="String" />
                            <asp:Parameter Name="Answer" Type="Int32" />
                            <asp:Parameter Name="Score" Type="Int32" />
                            <asp:Parameter Name="WXID" Type="String" />
                            <asp:Parameter Name="WXNumber" Type="Int32" />
                            <asp:Parameter Name="ID" Type="Int32" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="A" Type="String" />
                            <asp:Parameter Name="B" Type="String" />
                            <asp:Parameter Name="C" Type="String" />
                            <asp:Parameter Name="D" Type="String" />
                            <asp:Parameter Name="Answer" Type="Int32" />
                            <asp:Parameter Name="Score" Type="Int32" />
                            <asp:Parameter Name="WXID" Type="String" />
                            <asp:Parameter Name="WXNumber" Type="Int32" />
                        </InsertParameters>
                    </asp:SqlDataSource>
                    <asp:TextBox ID="tbClassifyID" runat="server" ReadOnly="True" Visible="False"></asp:TextBox>
                    <asp:TextBox ID="tbID" runat="server" Visible="False"></asp:TextBox></td>
            </tr>
        </table>
        <br />
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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