Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi to all,
Here i have dropdown for state and city using model. but now i want populate city as per state selection.Can anybody help me.Here im using linq so kindly help me Here im using database table

Description:-
For state Stateid ->Primarykey,statename

For city Cityid->primary key, City-name , StateId->foreign key


What procedure i want to write in controller and partialviews
Posted

 
Share this answer
 
Comments
JOTHI KUMAR Member 10918227 13-Aug-14 1:58am    
Here i make LINQ connection . state and city table are in static in database. so i need to connect database tables. i want to write code in controller and views can explain me in code.how to write LINQ to populate this state and city
Jameel VM 13-Aug-14 2:07am    
the link i have shared has almost all the requirement you need. Please atleast try to do it.
JOTHI KUMAR Member 10918227 13-Aug-14 2:40am    
sorry to say to you jameel i already tried this link Here i just need LINQ query
Jameel VM 13-Aug-14 2:41am    
what problem you are facing?
JOTHI KUMAR Member 10918227 13-Aug-14 2:44am    
Here i gave all think but i need LINQ query and how to write Code in controller and partial views to populate state and city

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