How to get the field name for a model property

I’m working on a custom EditorTemplate for a FunnelWeb around the new tagging system that I’m working on.
It’s quite a complex editor that I’m doing, and it’s being bound against a collection, an IEnumerable<T> in fa…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

I’m working on a custom EditorTemplate for a FunnelWeb around the new tagging system that I’m working on. It’s quite a complex editor that I’m doing, and it’s being bound against a collection, an IEnumerable<T> in fact. But I have a problem, I need to be able to find out the Name that would be generated for the model property. If you do something like: @Html.EditorFor(x => x.StringProperty) You will get an input like this:


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate Updates
APA

Posts on LINQ to Fail | Sciencx (2011-01-19T00:00:00+00:00) How to get the field name for a model property. Retrieved from https://www.scien.cx/2011/01/19/how-to-get-the-field-name-for-a-model-property/

MLA
" » How to get the field name for a model property." Posts on LINQ to Fail | Sciencx - Wednesday January 19, 2011, https://www.scien.cx/2011/01/19/how-to-get-the-field-name-for-a-model-property/
HARVARD
Posts on LINQ to Fail | Sciencx Wednesday January 19, 2011 » How to get the field name for a model property., viewed ,<https://www.scien.cx/2011/01/19/how-to-get-the-field-name-for-a-model-property/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » How to get the field name for a model property. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2011/01/19/how-to-get-the-field-name-for-a-model-property/
CHICAGO
" » How to get the field name for a model property." Posts on LINQ to Fail | Sciencx - Accessed . https://www.scien.cx/2011/01/19/how-to-get-the-field-name-for-a-model-property/
IEEE
" » How to get the field name for a model property." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2011/01/19/how-to-get-the-field-name-for-a-model-property/. [Accessed: ]
rf:citation
» How to get the field name for a model property | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2011/01/19/how-to-get-the-field-name-for-a-model-property/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.