62,041
社区成员
发帖
与我相关
我的任务
分享
protected void btnInquiry_Click(object sender, EventArgs e)
{
string empBh = tbEmpBh.Text.Trim();
string empName = tbEmpName.Text.Trim();
string empDept = this.ddlDept.SelectedValue;
string empPosition = ddlPosition.SelectedValue;
Table= empTableAdapters.GetDataBy(empBh, empName, empDept, empPosition);//查找出来数据
databind(Table);
}
protected void databind(DataTable dt)
{
gvEmp.DataSource=dt;
gvEmp.DataBind();
}