Namespace is not detected in .cshtml page
I am using Telerik Grid. In Model, I created a class called Student.
namespace testRazorView.Models
{
public class Student
{
..
..
}
}
In .cshtml page, I need to get the student class..so i used as following.
@(Html.Telerik().Grid<namespace>
namespace is not detected ie..testRazorView.Models.Student should be replaced in the namespace, but not detected. Provide solution for this. Thanks.
I think you can define @model also. Here is the article by Mr. Scot Guthrie himself – http://weblogs.asp.net/scottgu/archive/2010/10/19/asp-net-mvc-3-new-model-directive-support-in-razor.aspx