Click here to Skip to main content
15,907,497 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am new for mvc5. I have created company with list of companies and data is saving in db. I want to select particular company name to select in another view and it should be saved in db.
for example: I have 2 models called companymodel and Locationmodel
in companymodel contains some fields, and saved data in db and list, in that fields company name is there.
here I want to select company name in locationmodel create page by selecting from companymodel list page.

whenever I clicked on company field from locationmodel create page, company list page should popup and I can able to select company name from list of companies and that company name should be saved in db.

please give me some suggestions how can I do that. and share some videos if it's there.

And please let me know if you are not clear in my question.

Great thanks and regards,
Ali

What I have tried:

I have created company with list of companies and data is saving in db. I want to select particular company name to select in another view and it should be saved in db.
for example: I have 2 models called companymodel and Locationmodel
in companymodel contains some fields, and saved data in db and list, in that fields company name is there.
here I want to select company name in locationmodel create page by selecting from companymodel list page.

whenever I clicked on company field from locationmodel create page, company list page should popup and I can able to select company name from list of companies and that company name should be saved in db.

please give me some suggestions how can I do that. and share some videos if it's there.
Posted

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