JQuery Parent/child form. how to Post to MVC Controller

This project is a booking calendar for a Spa.

I have a calendar on the Booking page. When the user clicks the calendar, a JQuery dialog is displayed with booking info.

The end user will here enter one or more treatments before they enter any information about the Customer. Since I don't know if this is a return or new customer, I don't want to save to the DB at this point so I put the information in a table in the dialog.

When the user press the OK-button, I'd like to save the information to the server. There are several form fields and off course the table with the information. How do I pass the data to the server with an AJAX call? If I use a Form Post, the data in the table will not be passed.

Any help is appreciated.

Best Regards

Tomas


ekenmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ekenmanAuthor Commented:
I ended up with several AJAX calls to solve this.
First I add the parent record and then each child-record in separate ajax posts sending each field and specifying them in the controller.
I found some solutions to passing json to the controller in c# using model binders, but could not get them to work in VB.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Frameworks

From novice to tech pro — start learning today.