Problem recognizing html helpers in asp.net mvc 3 razor

后端 未结 4 701
眼角桃花
眼角桃花 2021-01-05 00:20

This is what my Html helper looks like:

namespace WebApp.WebUI
{
    public static class HtmlExtensions
    {

            public static MvcHtmlString Genera         


        
4条回答
  •  星月不相逢
    2021-01-05 00:40

    To make html helpers work globally, follow Darin Dimitrov's answer. Once that's done, close the .cshtml view and reopen it, the intellisense starts working.

    Reference: Razor - mvc 3 - Namespace to web.config works but intellisense does not recognize extension

提交回复
热议问题