
![]() |
| <asp:SqlDataSource ID="SqlDataSource1" Runat="server" SelectCommand="SELECT [ProductID], [ProductName], [SupplierID], [CategoryID], [QuantityPerUnit], [UnitPrice] FROM [Alphabetical list of products]" ConnectionString="<%$ ConnectionStrings: NorthWindConn %>"> </asp:SqlDataSource> |

| <asp:SqlDataSource ID="SqlDataSource1" Runat="server" SelectCommand="SELECT [ProductID], [ProductName], [SupplierID], [CategoryID], [QuantityPerUnit], [UnitPrice] FROM [Alphabetical list of products]" ConnectionString="<%$ ConnectionStrings:NorthWindConn %>" UpdateCommand="UPDATE Products SET ProductName = @ProductName, SupplierID= @SupplierID, CategoryID =@CategoryID , QuantityPerUnit = @QuantityPerUnit , UnitPrice = CONVERT(money,@UnitPrice) WHERE ProductID=@ProductID" DeleteCommand="DELETE FROM Products WHERE ProductID=@ProductID"> </asp:SqlDataSource> |
![]() |
![]() |
| <asp:SqlDataSource ID="SqlDataSource1" Runat="server" SelectCommand="SELECT [ProductID], [ProductName], [SupplierID], [CategoryID], [QuantityPerUnit], [UnitPrice] FROM [Products]" ConnectionString="<%$ ConnectionStrings:NorthWindConn %>" UpdateCommand="UPDATE Products SET ProductName = @ProductName, SupplierID= @SupplierID, CategoryID = @CategoryID , QuantityPerUnit = @QuantityPerUnit , UnitPrice = CONVERT(money,@UnitPrice) WHERE (ProductID=@ProductID)" DeleteCommand="DELETE FROM Products WHERE ProductID=@ProductID" InsertCommand="INSERT INTO Products (ProductName, SupplierID, CategoryID, QuantityPerUnit, UnitPrice) VALUES (@ProductName, @SupplierID, @CategoryID, @QuantityPerUnit,CONVERT(money,@UnitPrice))"> </asp:SqlDataSource> |
![]() |
用户评论