Click here to Skip to main content
15,072,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, hope someone can help.

I have a form with two dropdown lists (campus, and rooms) and a gridview to show available assets. I would like to populate the 'room' dropdown list and update the gridview based on the campus the user choose, i.e. if a user choose London campus, I want the rooms in that campus to populate the second dropdown, and available asset to populate the gridview.

I have tried to use the databind wizard in, but nothing actually show when running the application, not even the gridview. I am not that good with the code behind, although I tried it few time.

autopostback is true for campus dropdown list.
room dropdown will show the rooms only if campusCampus = campusRoom
gridview will display assets only if campusCampus = assetsCampus

hope you are able to help

thanks in advance

1 solution

This CP article should help Cascading Dropdown List With MVC, LINQ to SQL and AJAX[^] or this MS Tutorial[^] for ASP
Awoldeselassie 8-May-15 5:42am
Thank you, the MS tutorial was helpful

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