Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6027479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:35:57+00:00 2026-05-23T04:35:57+00:00

i have just gone through knockoutjs and watched the video provided on the site

  • 0

i have just gone through knockoutjs and watched the video provided on the site. its quite interesting how we can cleanly arrange our js code using knockout. I have also gone through examples where it produces nested or master detail forms but these forms are always submitted through ajax. Is there a way i can post the nested form without ajax without breaking asp.net mvc’s default modelbinding. More specifically i want the behavior as in this code demo that i created a while ago. but now i want to do it using knockoutjs and without ajax

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:35:58+00:00Added an answer on May 23, 2026 at 4:35 am

    Take a look at the answer to this question: Submit json to MVC3 action

    It describes using the utility function ko.utils.postJson to submit part or all of your view model using a normal form post. It does require an attribute on the .NET side to properly deserialize it from a form post (as opposed to using AJAX with the content type set to JSON).

    Also, check out this thread for some ideas if you need to mix Knockout data with normal form fields: https://groups.google.com/d/topic/knockoutjs/eCQo4yzCSAc/discussion and this thread also describes registering a model binder for certain types, so you don’t need to use an attribute: https://groups.google.com/d/topic/knockoutjs/3FEpocpApA4/discussion

    So, your best bet is to look at calling ko.utils.postJson(url, ko.toJSON(viewModel))

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to matlab classes and have just gone through a couple tutorials and
I am just trying to read .csv file first time.I have gone through the
I've just installed couchapp from the instructions and have gone through the Getting Started
I've gone through just about every property I can think of, but haven't found
I’m somewhat baffled by knockoutjs. I’ve gone through most of the tutorials and have
I am a rookie at javascript, I have just gone through few of array
I have gone through this link . But, there are just too many examples.
I've just gone blank. I have a many to many relationship with three tables.
We have a software package which is about 16 years old. It's gone through
From my previous question for selecting specific html text, I have gone through this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.