Hi! I am trying to create a new strong-typed view for an MVC project.
I tried to create it both from the Controller class (right click -> add View) or directly from the Views (right click -> Add view) and selected it to be a strong-typed view. From the drop-down, I selected the Model and data class it should refer to.
While filling in the content of my View, I need to declare it as:
<p>
Title:
<%= Html.Encode(Model.Title) %>
</p>
For some reason, I just get this error: "The name 'Model' does not exist in the current context".
I must be missing something out... :-(
Any comment or idea would be great!