Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
MVC5
I am working on a create view for personal details It contains name, address, email, username, password, mobile. But there is a button near mobile field, when we press that
button it adds a new textbox for more mobile numbers. I used jquery for that functionality. But, how to insert that mobile numbers in mobile table with foreign key references master user table. Can you please send me code to insert it in database.

Thanks

What I have tried:

I tried that I have dynamically created textboxes on click of add button and set ids of these textboxes using jquery. But how to access that ids I am not getting any solution for inserting that data into database.
Posted
Comments
F-ES Sitecore 30-Dec-17 5:04am    
Just do it in a loop. Create your master record then loop through each phone number and insert the master record. There is no point asking for specific code as we don't know your database structure or even what database access technology you're using.

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