How can I get the property name in my MVC3 custom Editor Template

I found the answer in a book I have here. Actually, it got me close, but I then could google the rest based on what I found.

Here is what I needed to add to my editor template.

@{var fieldName = ViewData.TemplateInfo.HtmlFieldPrefix;}
<select id="@fieldName" name="@fieldName"> 

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)