To search for a single employee data you should change you code like in the next example:
Employee ObjEmployee = dataContext.Employees.FirstOrDefault(emp => emp.EmployeeCode == txtempcode.Text);
Where
dataContext
is your data context object, an object of type of your "Data Context Class" derived from
ObjectContext
.