0

detailpage.cshtml在 App_code 中创建了一个文件

@helper convertTime(DateTime value)
    {
        value.ToString("dd/MM/yyyy");
}

并且我试图在我的视图中访问它,但我无法在我的视图中访问它。

我错过了什么吗?

我提到了http://weblogs.asp.net/scottgu/archive/2011/05/12/asp-net-mvc-3-and-the-helper-syntax-within-razor.aspx但我仍然没有得到什么我失踪了吗?

4

0 回答 0