Hello, I have method in my N-Layered application that returns List. Below is the sample code for the method
public List<employee> GetAllemployees()
{
List<employee> empl =new List<employee>
empl=DAL.GetEmployees();
return empl;
}
Now I have a gridview in my aspx page and how do I set the gridview datasource as GetEmployees() so that all the employees are listed in the GridView. Thanks