Html.LabelFor and Html.TextBoxFor generate empy html code
- by Ceridan
I'm writing my first ASP.NET MVC application and there is one big problem for me. I want to make a control which will represent a form, but when I try to generate labels and textboxes it returns to me empty page.
So, this is my model file (MyModel.cs):
namespace MyNamespace.Models
{
public class MyModel
{
[Required(ErrorMessage = "You…