添加


@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Add</title>
    <script src="~/Scripts/jquery-1.10.2.js"></script>
    <script src="~/Content/Js日历控件/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <div>
        @using (Html.BeginForm("Add", "view", FormMethod.Post))
        {
         
            <table style="width:100%;">
                <tr>
                    <td>&nbsp;学生姓名:@Html.TextBox("StuName")</td>
                </tr>
                <tr>
                    <td>&nbsp;学生性别:@Html.RadioButton("StuSex",true,new { @checked= "checked"})<span>男</span>
                                        @Html.RadioButton("StuSex", false)<span>女</span>
                   
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;学生年龄:@Html.TextBox("StuAge")</td>
                </tr>
                <tr>
                    <td>&nbsp;入学时间:@Html.TextBox("StuKTime","",new { @onclick= "WdatePicker()",@readely= "readely" })</td>
                </tr>
                <tr>
                    <td>&nbsp;截止时间:@Html.TextBox("StuJTime","",new { @onclick= "WdatePicker()", @readely = "readely" })</td>
                </tr>
                <tr>
                    <td>&nbsp;班级编号:@Html.DropDownList("StuCLassID")</td>
                </tr>
            </table>
        <input id="Submit1" type="submit" value="submit" />
        }
    </div>
</body>
</html>
posted @ 2018-07-30 07:54  Caryon  阅读(233)  评论(0编辑  收藏  举报