public void EmpDetailView() { try { DataSet Ds = new DataSet(); Ds = Dm.EmpDetailView(); EmployeeId.DataSource = Ds.Tables[0]; EmployeeId.DataTextField = "EmployeeName"; EmployeeId.DataValueField = "EmployeeId"; EmployeeId.DataBind(); } catch (Exception e1) { } }