解决方案:元素<组件>使用用户控件时在VS2008是不是一个已知的元素警告 [英] Solution for: Element <element> is not a known element warning in vs2008 when using User controls

查看:221
本文介绍了解决方案:元素<组件>使用用户控件时在VS2008是不是一个已知的元素警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不得不说是显示此警告VS2008一个项目,我找不到任何地方的解决方案 - 也许我的谷歌富薄弱

I had a VS2008 project that was showing this warning, and I couldn't find a solution anywhere - perhaps my google-fu is weak.

在任何情况下,明显的解决方案是,以确保标记名是控制类的名称。

In any case, the apparent solution to this is to make sure that the TagName is the name of control class.

因此​​,对于我的例子,下面显示的警告:

So for my example, the following displayed the warning:

<%@ Register Src="~/path/to/Control.ascx" TagName="tagName" TagPrefix="tagprefix" %>

&LT;标签preFIX:标签名=服务器ID =控件ID/&GT;

但将其更改为:

<%@ Register Src="~/path/to/Control.ascx" TagName="Control" TagPrefix="tagprefix" %>

&LT;标签preFIX:控制=服务器ID =控件ID/&GT;

修复它。

情况因人而异。

推荐答案

这听起来像是一个经典的重新构建解决方案和关闭并重新打开Visual Studio的的问题。

This sounds like a classic re-build your solution and "close and re-open Visual Studio" problem.

这是可能的,也可能与类似的问题我有,我在<一回答href=\"http://stackoverflow.com/questions/1474716/resolving-validation-element-xxxx-is-not-supported-warning-in-visual-stud\">http://stackoverflow.com/questions/1474716/resolving-validation-element-xxxx-is-not-supported-warning-in-visual-stud.

It's possible it may also be related to a similar problem I had which I answered at http://stackoverflow.com/questions/1474716/resolving-validation-element-xxxx-is-not-supported-warning-in-visual-stud.

这篇关于解决方案:元素&lt;组件&gt;使用用户控件时在VS2008是不是一个已知的元素警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆