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

  • SEARCH
  • Home
  • 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 6912363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:04:56+00:00 2026-05-27T09:04:56+00:00

Html form is controlled using Knockout JS and jQuery templates. Basic jQuery validation is

  • 0

Html form is controlled using Knockout JS and jQuery templates.
Basic jQuery validation is in use to validate fields.
Form gets serialized to JSON and submitted to MVC controller action using AJAX.
MVC controller action performs server-side model validation, adds errors to ModelState.

  1. What’s the best practice to return those errors to the client – iterating through errors in ModelState and adding them to key/value collection of errors in the JSON response?

  2. How do you display errors on the client? How do you ‘bind’ the key/value collection of errors to relevant fields on the model?

Say there is a “name” field on the model, with a corresponding textbox rendered by the jQuery template. How does one take the error for the “name” field in the collection of errors and display the error message beneath the “name” textbox?

  • 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-27T09:04:57+00:00Added an answer on May 27, 2026 at 9:04 am

    There’s two validation plugins for ko.js (found here) that could help you,

    Knock-Knock validation

    Knockout Validation

    You can wire one of those to the mvc unobstrsive validation data injected client side.

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

Sidebar

Related Questions

I have a basic HTML form that gets inserted into a server side div
I have an html/jsp form that I am serializing(using jquery) and passing to a
I'm using a multiple select HTML form input to allow a user to pick
Using MVC, I have an html form helper in my view: using (Html.BeginForm(ActionOne, ControllerOne))
I have this : HTML : form + jquery Controller I post the form
I am trying to use Google Docs Form in a custom HTML page. So
I'm using Spring 3 and every time I submit a HTML form to a
I have a HTML form, and I have a Controller Action that accepts the
In an HTML form post what are valid characters for creating a multipart boundary?
I have a an HTML form which contains the YAHOO rich text editor on

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.