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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:05:51+00:00 2026-06-10T21:05:51+00:00

This is my MVC registration page. You can see the validation error messages consolidated

  • 0

Data Entry Page and Validation Errors

This is my MVC registration page. You can see the validation error messages consolidated up top. The UI designers want red (*) to appear next to each control that needs attention.

I know how to use MVC 3 validation to produce either *’s or the error messages above by placing @Html.ValidationMessageFor and customizing error messages to be either *’s of the more detailed messages.

What I can’t figure out is how to do both. I understand that I can solve this problem with JQuery. But I suspect that MVC validation has a way to do this. @Html.ValidationMessageFor seems to apply once for each model member / control so that is probably not the way…

So to summarize, is there a way for me to add a second error message (like *) for each control located in a different location than the original message with only MVC validation and no JQuery / JS.

  • 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-06-10T21:05:52+00:00Added an answer on June 10, 2026 at 9:05 pm

    As far as I know the validation feedback only supports one feedback string per input. You could set custom feedback messages for each one and put the * in front of the string but this breaks a lot of the convention over configuration benefit of MVC.

    Now, that being said why not try CSS? As I understand it those feedback messages (when next to each input form) use a fixed css class. So maybe something along this line…

    field-validation-error:before
    { 
        content:"* ";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am quite new with this MVC in ASP.NET. If I have a page
I am trying to do this with MVC 3 EF Model first I want
I want to create an MVC application where by I can create areas of
I have decided to use ASP.NET MVC to develop multi page (registration) forms in
I am preparing a registration page using JSF/Spring webflow&mvc application. I have added two
I am trying to create a user registration page using MVC 3, so that
So I am making a registration page in ASP.NET MVC and theres a list
I use ASP.NET MVC 3 Razor, with jquery validation plugin to build a Registration
In my registration form I want to put some client-side validations with MVC regular
i am new to asp.net mvc 2.0.Currently i am having registration page with fields

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.