Step 3 : Drag "GetEmployeesByDepartment" stored procedure from the Server Explorer window and drop it on the LINQ to SQL class designer. This will automatically create a method with the same name as the stored procedure.

Step 4 : Drag and drop a button and a label control on the webform.

For the button, change the following propertiesID = lblDeptText=""

For the button, change the following propertiesText = Get Employees By DepartmentID = btnGetEmployeesByDepartment

Double click the button control to generate the click event handler method.

If you are following along the design of the webform, should be as shown below.