组合ASP.NET 2.0数据控件构建强大用户接口

开发者在线 Builder.com.cn 更新时间:2007-04-02作者:builder.com.cn 来源:

<asp:SqlDataSource ID="ds" runat="server" SelectCommand="SELECT EmployeeID, LastName, FirstName, Region FROM Employees WHERE (City=@City)"            ConnectionString="Server=localhost;Database=Northwind;Trusted_Connection=true">
<SelectParameters>
<asp:ControlParameterControlID="DropDownList1" Name="City" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:SqlDataSource>

用户评论

  • 用户名
  • 评论内容
用户名:      邮件地址: