Extra Label im EditorForModel

Feb 7, 2011 at 5:41 PM

I'm getting an extra label above my editor for all my properties.

Here's my model object:

public class User_ViewModel
    {
        public string A { getset; }
        public string B { getset; }
    }

Here's the form that's gets generated:

<label for="A">A</label>
A :
<input id="A" name="A" />
<label for="B">B</label>
B :
<input id="B" name="B" />
Here's the form I'm expecting:
A :
<input id="A" name="A" />
B :
<input id="B" name="B" />
Any suggestions?
Coordinator
Feb 7, 2011 at 5:46 PM

delete the Template.master from EditorTemplates

Feb 7, 2011 at 7:44 PM

Thanks O.

I did that and since all the shared editors ref that file as their master, they throw an error.

Coordinator
Feb 8, 2011 at 7:16 AM

well make them not to ref that file

Feb 8, 2011 at 3:24 PM

Thanks O. 

I'll deref that master and see if I can gen the markup I'm hoping for.

I appreciate the quick responses you always provide on this forum.