Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Sir, i M new to asp.net mvc5.

i want to learn that how can we get data in mvc app based on dropdown.
example: if i select Gender-male, i want to display all male employees.

What I have tried:

i just created employee table with Empid,Name,Designation,Gender.

i can do CRUD for this, but i Couldnt Get employes based on Gender
Posted
Comments
Krunal Rohit 1-Mar-16 2:21am    
It's a very common scenario and a simple one too. You need to fire the select statement with where clause. In which, your where clause contains the dropdown selection value.


KR

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900