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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:39:56+00:00 2026-05-13T21:39:56+00:00

source code … Thing is, if i specify required metadata using fluent modelmetadata provider

  • 0

source code…

Thing is, if i specify required metadata using fluent modelmetadata provider like this=>

public class Foo
    {
        public string Bar { get; set; }
    }

    public class FooModelMetadataConfiguration : ModelMetadataConfiguration<Foo>
    {
        public FooModelMetadataConfiguration()
        {
            Configure(x => x.Bar)
                .Required("lapsa") ;
        }
    }

And write this into my view =>

<% Html.BeginForm(); %>
<%= Html.ValidationSummary() %>
<%= Html.TextBoxFor(x=>x.Bar) %>
<% Html.EndForm(); %>

And add this to home controller =>

 [HttpPost]
 public ActionResult Index(Foo foo)
 {
       ViewData["Message"] = "Welcome to ASP.NET MVC!";

       return View(foo);
 }

It will output this html =>

<div class="validation-summary-errors">
  <ul>
    <li>lapsa</li>
    <li>The Bar field is required.</li>
  </ul>
</div>

I can’t understand why 2nd error is rendered and how to omit it.

Author of System.Web.Mvc.Extensibility framework replied with =>

I think this is a known issue of asp.net mvc, i could not remember the exact location where I have read it, I suggest you post the issue in asp.net mvc issue tracker over codeplex.

But before i post anything on issue tracker – i would like to understand first what exactly is wrong.

Any help with that?

  • 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-13T21:39:56+00:00Added an answer on May 13, 2026 at 9:39 pm

    It’s fixed now.

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

Sidebar

Related Questions

I saw the Qt source code like this: class Q_CORE_EXPORT QBasicAtomicInt { public: ...
The source code is like this: <div id=contact> <div class=form> <form action=contact.php method=post name=contact-us>
Superclass source code public class Date { private int month; private int day; private
This source code class MyToolBar(wx.ToolBar): def AddTool2(self, id, shortHelp = '', longHelp = ''):
From viewing the source code that this code makes it looks like itemValue generate
I often see source code using types like uint32, uint64 and I wonder if
Source Code of LoginAction.java package com.test; import java.util.ArrayList; import java.util.List; public class LoginAction {
Java Source Code: package n1_problem; /** * * @author nAwS */ public class loop
I have some C++ source code with templates maybe like this - doxygen runs
The backbone.js source code uses a function wrapper like this: (function(){ ... }).call(this); as

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.