Good morning,
I have an app in WebForms
that from two DropDownList
gets data from a database in MS SQL Server 2012
.
At first DropDownList
it will display the name of several companies in the database with the following SELECT statement
: '
SELECT [nome] FROM [empresas]
In the second DropDownList
it will display a list of employees that are associated with this company selected above, since in the employee table the company code is associated with the employee. But I did not realize how I can resolve this, currently it presents all the employees in the database without restricting anything, being with SELECT statement
basic of:
SELECT [nome] FROM [colaboradores]
How can I solve this problem?