1

I am working on an asp.net application and I have created a folder named Models inside it. I have a class named instructor in it. I am creating a partial view and making it strongly typed with this statement

@model RazorView.Models.Instructor 

But I am getting this error :

The type name 'Models' does not exist in the type 'System.Web.Mvc.RazorView'

public class _Page_Views_Home_Index_cshtml : System.Web.Mvc.WebViewPage> {

How can I fix it?

1 Answer 1

4

You need to change your Namespace, RazorView is used by System.Web.Mvc.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.