基于动态网页技术设计的在线考试系统

实验目的

设计一个用于100以内的加法练习程序。程序启动后自动产生两个100以内的随机整数显示在屏幕上,用户输入算式的答案后单机“确定”按钮,程序,程序将算式显示出来并通过“√”或“×”给出评判,对出错的算式以醒目形式显示。同时给出下一题。

实验内容

程序

HTML代码

<%@ Page Language=“C#” AutoEventWireup=“true” CodeFile=“Default.aspx.cs” Inherits="_Default" %>

</div>
    <table class="auto-style1" align="center" border="1">
        <tr>
            <td class="auto-style3" colspan="2">
                <h1><strong>在线模拟考试系统</strong></h1>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">姓&nbsp; 名:</td>
            <td class="auto-style7">
                <asp:TextBox ID="txtName" runat="server" Width="250px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="auto-style5">准考证号:</td>
            <td class="auto-style6">
                <asp:TextBox ID="txtNo" runat="server" Width="250px"></asp:TextBox>
                <br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtNo" ErrorMessage="准考证号必须由6位数字组成" ValidationExpression="\d{6}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style4" colspan="2">
                <asp:Button ID="btnOK" runat="server" Text="开始考试" OnClick="btnOK_Click" />
            </td>
        </tr>
    </table>
</form>

<%@ Page Language=“C#” A

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值