SqlDataSource Web 服务器控件概述 ; 伺服器控制项概观
To see the SqlDataSource in action, let's take a look at the Orders_SDS.aspx page (see Figure 4).
为了查看SqlDataSource是如何操作的,让我们先观察一下Orders_SDS . aspx页(参见图4)。
There is a DropDownList control that is bound to a SqlDataSource source control the retrieves a list of customers from the Northwind database.
有一个 DropDownList 控件,它绑定到一个从 Northwind 数据库中检索客户列表的 SqlDataSource 源控件。
The code in Figure 5, taken from Orders_SDS.aspx (which is available in the download), shows the two SqlDataSource controls and the DropDownList.
图5中的代码(摘自orders_sds . aspx—它可在下载中得到)显示了两个SqlDataSource控件和这个DropDownList。
应用推荐