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

📄 modifyyd.aspx

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

<!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>
        <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="tbYDID" 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="tbYDName" runat="server" TextMode="MultiLine" Width="769px" Height="211px"></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; 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: 186px; border-bottom-style: solid">
                        &nbsp; &nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                            CellPadding="4" DataKeyNames="ID,YDID" DataSourceID="SqlDataSource1" ForeColor="#333333"
                            GridLines="None" Width="793px">
                            <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="YDID" HeaderText="题号ID" ReadOnly="True" SortExpression="YDID" />
                                <asp:BoundField DataField="YDNumber" HeaderText="题号" ReadOnly="True" SortExpression="YDNumber" />
                                <asp:BoundField DataField="YDName" HeaderText="题目" SortExpression="YDName" />
                                <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: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 [YDDetail] WHERE [ID] = @ID" InsertCommand="INSERT INTO [YDDetail] ([YDNumber], [YDName], [A], [B], [C], [D], [Answer], [Score], [YDID]) VALUES (@YDNumber, @YDName, @A, @B, @C, @D, @Answer, @Score, @YDID)"
                            SelectCommand="SELECT [YDNumber], [YDName], [A], [B], [C], [D], [Answer], [Score], [YDID], [ID] FROM [YDDetail] WHERE ([YDID] = @YDID) ORDER BY [ID]"
                            UpdateCommand="UPDATE [YDDetail] SET [YDNumber] = @YDNumber, [YDName] = @YDName, [A] = @A, [B] = @B, [C] = @C, [D] = @D, [Answer] = @Answer, [Score] = @Score, [YDID] = @YDID WHERE [ID] = @ID">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="tbYDID" Name="YDID" PropertyName="Text" Type="String" />
                            </SelectParameters>
                            <DeleteParameters>
                                <asp:Parameter Name="ID" Type="Int32" />
                            </DeleteParameters>
                            <UpdateParameters>
                                <asp:Parameter Name="YDNumber" Type="Int32" />
                                <asp:Parameter Name="YDName" Type="String" />
                                <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="YDID" Type="String" />
                                <asp:Parameter Name="ID" Type="Int32" />
                            </UpdateParameters>
                            <InsertParameters>
                                <asp:Parameter Name="YDNumber" Type="Int32" />
                                <asp:Parameter Name="YDName" Type="String" />
                                <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="YDID" Type="String" />
                            </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>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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