ASP.NET MVC: Why can't I set ShowForEdit model metadata with an attribute?
Posted
by UpTheCreek
on Stack Overflow
See other posts from Stack Overflow
or by UpTheCreek
Published on 2010-06-10T09:09:24Z
Indexed on
2010/06/10
9:12 UTC
Read the original article
Hit count: 289
Why can't I set ShowForEdit
model metadata with an attribute?
It seems that the only attribute provided to alter this is [ScaffoldColumn]
, which sets both ShowForEdit
and ShowForDisplay
, which is not what I want to do. I want to be able to annotate the two separately from on my model.
© Stack Overflow or respective owner