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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:34:31+00:00 2026-05-13T18:34:31+00:00

In the previous versions on ASP.NET MVC, you could use ModelState.AddModelError(**_FORM**, error) to make

  • 0

In the previous versions on ASP.NET MVC, you could use ModelState.AddModelError("**_FORM**", "error") to make an error on the form-level instead of a property-level. This seems not to work anymore with the new RC of ASP.NET MVC 2.

Is there another way how to do it? I use <%= Html.ValidationSummary() %> at my View-file…

  • 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-13T18:34:31+00:00Added an answer on May 13, 2026 at 6:34 pm

    I personally use AddModelError("" – I don’t know where does _FORM come from? – and ValidationSummary() is no black magic – I use my own helper instead that, for example, includes specific (user-specific) exceptions messages into output. The helper is very easy to write – a simple foreach loop over ModelState – so you may consider writing your own one. There you’re free to show form-level, property-level, or whatever you like.

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

Sidebar

Related Questions

I am refactoring a web app built with previous versions of Asp.Net MVC where
In previous versions tester could verify or assert something. Now we can only use
Following on from my previous question, If I am beginning to learn asp.net MVC,
I have an ASP.NET form that the user can make lots of changes to,
In previous versions of Excel there was a registry entry that you could create
In previous versions of Visual Studio I remember I saw the error code/number in
In VS2010 and ASP.NET MVC 2, it seems that client-side validation (JQuery Futures or
We've just brought up a new ASP.NET page that is showing a strange error.
I just updated my Asp.Net Mvc 2 project to Mvc 3 and suddenly my
I am an experienced ASP.NET WebForm developer and trying to learn MVC. I am

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.