Render string as a "label" instead of "input" in ASP.NET MVC 2 using UIHint?
I tried UIHint("Label") but it doesn't 开发者_如何转开发change the behavior. If someone also can point me to a list of possible values for UIHint, that would be awesome!
Try [HiddenInput(DisplayValue=true)]
on your property.
Do you have a DisplayTemplate Folder in your Shared Folder with Label.ascx?
精彩评论