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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:26:13+00:00 2026-05-27T17:26:13+00:00

I have code that contains: @Html.ValidationSummary(true) I looked at the MSDN site and still

  • 0

I have code that contains:

@Html.ValidationSummary(true)

I looked at the MSDN site and still can’t see what setting “true” does? What I notice is that when I have validation messages that are for fields then it still creates a validation summary DIV that’s empty.

Is there a way to supress the creating of the summary DIVs as they don’t show anything when for example my field is a duplicate.

  • 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-27T17:26:14+00:00Added an answer on May 27, 2026 at 5:26 pm

    You can specify error messages against the properties or against the model. Those specified against the model are displayed using the validationsummary().

    The bool property indicates if you would like to display the validation summary error messages at the same time as displaying the property error messages. If you choose not to then the property error messages will be displayed to the user first. Then, when the user has resolved all of those error messages, the summary error messages will be displayed after.

    If the bool parameter is true then only model-level errors are displayed. If the parameter is false then all errors are shown.

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

Sidebar

Related Questions

I have an HTML textbox that contains some SQL code that I need executed.
In my HTML code, I have a form tag that contains two input boxes,
I have some HTML code that contains nested <ul> elements and I need to
I have a NSString that contains the html code of a webpage. Now, how
I have an XML document that has a TextBlock that contains HTML code. <TextBlock>
I have a text file that contains an HTML code, and I want to
I have a black box of code that contains many threads. There is no
i have this code that will check the array contains the specific string and
I have a very large code base that contains extensive unit tests (using CppUnit).
I have some code in a python string that contains extraneous empty lines. I

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.