asp
用asp怎样把表格里面的信息储存到数据库里面????急 --------------------编程问答-------------------- 用SqlDataSour<asp:sqldatasource
id="SqlDataSource1"
runat="server"
connectionstring="<%$ ConnectionStrings:MyNorthwind %>"
selectcommand="SELECT CompanyName,ShipperID FROM Shippers"
insertcommand="INSERT INTO Shippers (CompanyName,Phone) VALUES (@CoName,@Phone)">
<insertparameters>
<asp:formparameter name="CoName" formfield="CompanyNameBox" />
<asp:formparameter name="Phone" formfield="PhoneBox" />
</insertparameters>
</asp:sqldatasource>
CompanyNameBox 是txtbox 控件
PhoneBox CompanyNameBox
在插入按钮中加入命令
SqlDataSource1.Insert();
补充:.NET技术 , ASP.NET