的.aspx code错误"元素“XXXX”不支持&QUOT。 [英] .aspx code errors "Element 'xxxx' is not supported."

查看:172
本文介绍了的.aspx code错误"元素“XXXX”不支持&QUOT。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了一堆这样的错误对我的图像按钮,链接按钮,文本框和标签。这些错误都在我的.aspx code。为什么会出现这么多?

 <%@页面语言=C#AutoEventWireup =真codeFILE =frmSearchPersonnel.aspx.cs继承=frmSearchPersonnel%GT;!< D​​OCTYPE HTML PUBLIC -  // W3C // DTD XHTML 1.0过渡// ENhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">< HTML的xmlns =htt​​p://www.w3.org/1999/xhtml>
<头ID =头像1=服务器>
    <标题>无标题页< /标题>
< /头>
<身体GT;
    <表ID =form1的=服务器>
    < D​​IV>    < D​​IV ALIGN =中心>
    < / DIV>    < / DIV>
    < ASP:标签ID =Label1的=服务器文本=搜索按姓氏员工>< / ASP:标签>
    < ASP:文本框ID =txtSearchName=服务器>< / ASP:文本框>
    &所述p为H.;
        < ASP:按钮的ID =btnSearch=服务器一项PostBackUrl =〜/ frmViewPersonnel.aspx
            文本=搜索的onclick =btnSearch_Click/>
    &所述; / P>
    < /表及GT;
< /身体GT;
< / HTML取代。

的错误是在标签,文本框和放大器;按钮上方为蓝色。这些错误状态:


  

验证():元素XXXX不支持



解决方案

唯一的问题I和我ReSharper的看到的是结束html标记后的时期。

 < / HTML取代。

什么是你所得到的错误?

编辑:

下面是一个简单的解决有人有:

<一个href=\"http://weblogs.asp.net/alaaalnajjar/archive/2010/08/31/how-to-fix-quot-validation-element-xxxx-is-not-supported-quot-visual-studio-2010.aspx\">http://weblogs.asp.net/alaaalnajjar/archive/2010/08/31/how-to-fix-quot-validation-element-xxxx-is-not-supported-quot-visual-studio-2010.aspx


  

这个想法是从路径删除文件夹ReflectedSchemas


  
  

Win XP的:C:\\文件和设置{用户名} \\应用
  数据\\微软\\ VisualStudio的\\ 10.0 \\ ReflectedSchemas


  
  

赢Vista / 7的:C:\\用户\\应用程序数据\\漫游
  \\微软\\ VisualStudio的\\ 10.0 \\ ReflectedSchemas


  
  

请注意:确保显示隐藏文件,文件夹和驱动器是
  从文件夹选项中选择,也不要忘了之前关闭VS
  删除文件夹。


  
  

此解决方案应VS2010和VS2008工作,在VS2008您必须
  从文件夹中删除9.0不ReflectedSchemas 10.0。


I'm getting a bunch of these errors for my image buttons, link buttons, text boxes, and labels. These errors are in my .aspx code. Why am I getting so many?

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frmSearchPersonnel.aspx.cs" Inherits="frmSearchPersonnel" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head id="Head1" runat="server"> 
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 

    <div align="center"> 


    </div> 

    </div> 
    <asp:Label ID="Label1" runat="server" Text="Search for employee by last name"></asp:Label> 
    <asp:TextBox ID="txtSearchName" runat="server"></asp:TextBox> 
    <p> 
        <asp:Button ID="btnSearch" runat="server" PostBackUrl="~/frmViewPersonnel.aspx"  
            Text="Search" onclick="btnSearch_Click" /> 
    </p> 
    </form> 
</body> 
</html>.

The errors are under Label, TextBox & Button above in blue. The errors state:

Validation (): Element 'xxxx' is not supported.

解决方案

The only problem I & my Resharper see is the period after the ending html tag.

</html>.

What are the errors you are getting?

Edit:

Here's a simple fix someone had:

http://weblogs.asp.net/alaaalnajjar/archive/2010/08/31/how-to-fix-quot-validation-element-xxxx-is-not-supported-quot-visual-studio-2010.aspx

the idea is to remove the folder "ReflectedSchemas" from paths:

Win XP : C:\Documents and Settings{username}\Application Data\Microsoft\VisualStudio\10.0\ReflectedSchemas

Win Vista / 7: C:\Users\AppData\Roaming \Microsoft\VisualStudio\10.0\ReflectedSchemas

Note: make sure that "Show hidden files, folders, and drives" is selected from Folder Options,also don't forget to close VS before deleting the folder.

This solution should work for VS2010 and VS2008,at VS2008 you have to delete ReflectedSchemas from folder 9.0 not 10.0.

这篇关于的.aspx code错误&QUOT;元素“XXXX”不支持&QUOT。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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