How to work with cascading dropdown list using Linq to sql in MVC3

Posted by Sampath1750 under ASP.NET on 2/29/2012 | Points: 10 | Views : 4147 | Status : [Member] | Replies : 3
Hi all,
Can anybody tell me How to work with cascading dropdown list using Linq to sql in MVC3.(if possible give me code) or
How to change 2nd ddl values After selecting first dropdownlist
Thanks,
Sampath bejugama




Responses

Posted by: Vuyiswamb on: 3/1/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
The idea is Simple

e.g Dropdown 1 must retrieve the "Employee"

The Query must bring all the Users and bind to the First Dropdown and on SelectedindexChanged Event you must get the selected ID of the User and Return e.g users Department

e.g Dropdown2 must return a Department that the Employee belongs to

Same as above , get a Department based on the EmployeeID

and so on...





Thank you for posting at Dotnetfunda
[Administrator]

Sampath1750, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sampath1750 on: 3/1/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Vuyiswamb,
In MVC3 selected Index changed is not available

Sampath1750, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 3/1/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Login to post response