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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:36:16+00:00 2026-05-26T01:36:16+00:00

Its my understanding that by adding the ScaffoldColumn(false) annotation to an property in a

  • 0

Its my understanding that by adding the ScaffoldColumn(false) annotation to an property in a class, that property will not added to the view when doing Add View. However even though i have added scaffoldcolumn false to properties i dont want added to a Create form, they are still rendered inthe create view. Is ScaffoldColumn broken? On page 552 in Pro ASP.NET MVC 3 Framework by Freeman and Sanderson, it states

“If we want to exclude a property from the generated HTML, we can use
ScaffoldColumn attribute. When the scaffolding helpers see the
ScaffoldColumn attribute, they skip over the property entirely; no
hidden input elements will be generated and no details of this
property will be included in the generated HTML.”

Also the MVC Music Store PDF on p 77 indicates that the attrtibute will do the same –

“Allows hiding fields from editor forms”.

They add it to the AlbumId property and then when the app is run AlbumId field is not shown in the browser.

Is this attr broken?

If i change a html helper to DisplayFor it does not appear in the form regardless of whether scaffoldcolumn is present. For example i dont have scaffoldcolumn false on Property PostTitle but if i change @Html.EditorFor(Function(model) model.PostTitle) to displayfor then it does not render regardless of the scaffoldcolumn attr.

Also my Create view is strongly typed to @ModelType RiderDesignMvcBlog.Core.Entities.Post

  • 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-26T01:36:17+00:00Added an answer on May 26, 2026 at 1:36 am

    Received this answer in the asp.net forums:

    That statement is incorrect. The attribute is recognized by Dynamic
    Data, but not by MVC 3 Scaffolding. When I asked about this in March
    of this year, I got this response from the team that created the
    MvcScafolding Nuget package:

    Yes, that particular bit of metadata just isn’t recognized by the
    MvcScaffolding T4 templates. There’s a lot of possible metadata, and a
    lot of code necessary to recognize and respond to it all, and we have
    to trade that off against keeping the T4 templates simple enough that
    people can understand and customize them and not be overwhelmed with
    all the logic. I don’t think the MVC 3 built-in Add View templates
    respond to that one either.

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

Sidebar

Related Questions

It's my understanding that nulls are not indexable in DB2, so assuming we have
There's something fundamental that I'm not understanding about presenting views that get their interface
It's my understanding that common wisdom says to only use exceptions for truly exceptional
It's my understanding that StackOverflow (SO) was built using ASP.NET. What surprised me is
It's my understanding that in Spring, all objects are treated by default as singletons.
It's my understanding that all three of these lines below should return an ARRAY
It's my understanding that all .NET object instances begin with an 8 byte 'object
It's my understanding that, in terms of selector speed, that #ID selectors are fastest,
While it's my understanding that there's no fundamental reason a program written for 32-bit
So it's my understanding that on a ReaderWriterLock (or ReaderWriterLockSlim more specifically), both the

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.