62,074
社区成员
发帖
与我相关
我的任务
分享
protected string connString = WebConfigurationManager.ConnectionStrings["NorthwindConnectionString"].ConnectionString;
//Select员工数据
public DataView SelectEmployee()
{
string strCmd = "Select EmployeeID,LastName,City,Country from Employees";
SqlDataSource sqlds = new SqlDataSource(connString, strCmd);
return (DataView)sqlds.Select(DataSourceSelectArguments.Empty);
//回传DataView
}
(DataView)sqlds.Select(DataSourceSelectArguments.Empty);