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 6474963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:38:57+00:00 2026-05-25T06:38:57+00:00

Is there a way to trace why unobtrusive validation is not working? I have

  • 0

Is there a way to trace why unobtrusive validation is not working?

I have disabled all my custom validators, and just using MVC validators, and still it posts back to the server for validation when I click submit.

It’s driving me nuts. The only thing i can think of is that i have a hidden input that has no validation attributes on it other than [HiddenInput(DisplayValue = false)].

Is there a specific javascript function i can put a breakpoint in to determine which field is causing the form to submit?

EDIT:

I just realize that only IE8 is causing the server side validation. IE9, FF, and Chrome all are fine.

EDIT 2:

Ok, it must have been a cache issue or something. At some point it started working again, and it’s still working even after restoring everythng.

Lesson learned. Alwasy clear you cache when you get goofy problems.

  • 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-25T06:38:58+00:00Added an answer on May 25, 2026 at 6:38 am

    Make sure you have reference the following scripts and that the path is correct:

    <script src="@Url.Content("~/Scripts/jquery.validate.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")" type="text/javascript"></script>
    

    and that you have enabled client side validation in your web.config:

    <add key="ClientValidationEnabled" value="true" />
    

    Another important aspect is that if the form has been injected into the DOM as a result of an AJAX call, unobtrusive validation will not be attached to its elements and it will not work. You will have to attach it manually by using the $.validator.unobtrusive.parse method in your AJAX success callback after injecting it into the DOM.

    Also FireBug’s console tab is might be useful in showing potential javascript errors with your code.

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

Sidebar

Related Questions

After checking 20+ answers I'm sure there is no way to trace (using JS
Is there a good way in asp.net MVC to trace ModelState errors? IsValid returns
I'm using Delphi 2010 and I'm wondering if there's a way to trace through
Is there a way to programmatically trace the execution of all python functions/methods? I
Is there a way to get the stack trace for each sql query using
Is there a way to capture/trace/log all GET's or POST's to a certain url
is there a way to trace an ARRAY in FLASH. I want to have
Is there any way to capture the trace statements of your Flex app while
Is there a way to get the trace table for a Python program? Or
Is there a way that I can trace every method, basically a line trace,

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.