注册 登录
编程论坛 ASP.NET技术论坛

how to insert values based on form input through html into sql 2005 thank you

大头针 发布于 2011-02-05 01:35, 440 次点击
how to insert values based on form input through html into sql 2005 thank you
1 回复
#2
baoyuwang1982011-02-05 20:47
好难懂的英文,我给猜了个答案
在ASP。net的网页后台中
首先用 连接SQL server
创建 sqlconnect 和sqlcommand 对象
用 sqlcommand的对象的属性 commandtext ="insert into table_name values(you_values,)"
executeNOnquery(); // 执行

1