您缺少using指令时找不到命名空间名称 [英] namespace name could not be found are you missing a using directive
本文介绍了您缺少using指令时找不到命名空间名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
命名空间名称XXX找不到,如果您缺少using指令
在使用远程控制时在设计部分出现此错误.
namespace name XXX could not be found are you missing a using directive
getting this error in design part while using teleric control.
推荐答案
这是MVC控件吗?所以您尝试做与
类似的事情
Is this the MVC controls? So you''re trying to do similar to
Html.Telerik.{SomeMethod}
如果是这样,则需要将Telerik命名空间添加到web.config中,以注册Telerik的Html扩展方法.
转到web.cofig,输入如下内容
If so, you need to add the Telerik namespace to the web.config to register the Html Extension methods for Telerik
Goto web.cofig, make entry like the following
<namespaces>
<add namespace="System.Web.Mvc" />
<add namespace="System.Web.Mvc.Ajax" />
<add namespace="System.Web.Mvc.Html" />
<add namespace="System.Web.Routing" />
<add namespace="Telerik.Web.Mvc.UI" />
</namespaces>
这篇关于您缺少using指令时找不到命名空间名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文