web应用开发作业

web课本配套资源:http://www.tup.com.cn/upload/books/kj/079361-01.rar 解压密码:51318<ahref='https://www.itshuquan.com/book/28837'>本书预览</a><ahref='https://www.itshuquan.com/bookreq?openid=oG09KxNO4BvTVP0lVr8-p2LGUhfA'>申请样书</a><a...
摘要由CSDN通过智能技术生成

web课本配套资源:

http://www.tup.com.cn/upload/books/kj/079361-01.rar

解压密码:51318

<a href='https://www.itshuquan.com/book/28837'>本书预览</a>    <a href='https://www.itshuquan.com/bookreq?openid=oG09KxNO4BvTVP0lVr8-p2LGUhfA'>申请样书</a>

<a href='https://jiaoxue.wqxuetang.com/v1/b/dr/9787302506799'>在线试读</a>    <a href='https://www.itshuquan.com/order_fb?openid=oG09KxNO4BvTVP0lVr8-p2LGUhfA'>反馈用书</a>

其他资源

web程序

数据库部分

create database Student
go

create table student1(
studentno nchar(32) not null primary key,
stuName nvarchar(32) not null,
stuClass nvarchar(32) not null,
subject nvarchar(32) not null,
stuAge tinyint null,
stuPhone nchar(11) null,
stuGender nvarchar(4) null,
)

go
insert into student1 values('2019001','盐好香','计本一班','Web程序设计',20,'15634210056','男')
insert into student1 values('2019002','马笑笑','计本一班','软件工程',19,'17878341906','女')
insert into student1 values('2019003','宋村村','计本二班','操作系统',19,'17878560754','男')
insert into student1 values('2019004','贺仙子','计本二班','3dmax',19,'17878342356','女')
go

select *
from student1
go

Weform2.aspx.cs

using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void bt_AddStuInfo_Click(object sender, EventArgs e)
        {
            string stuNum = tb_stuNum.Text.Trim();
            string stuName = tb_stuName.Text.Trim();
            string stuClass = tb_stuClass.Text.Trim();
            string subject = tb_subject.Text.Trim();
            byte stuAge = 0;
            Byte.TryParse(tb_stuAge.Text.Trim(), out stuAge);
            string stuPhone = tb_stuPhone.Text.Trim();
            string stuGender = rbl_Gender.Select
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值