gpt4 book ai didi

c# - .aspx 代码错误 "Element ' xxxx' 不受支持。”

转载 作者:行者123 更新时间:2023-11-30 13:20:25 25 4
gpt4 key购买 nike

我的图像按钮、链接按钮、文本框和标 checkout 现了一堆这样的错误。这些错误在我的 .aspx 代码中。为什么我得到这么多?

<%@ 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>.

错误在上面蓝色的标签、文本框和按钮下。错误状态:

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

最佳答案

我和我的 Resharper 看到的唯一问题是结束 html 标记之后的句点。

</html>.

您收到的错误是什么?

编辑:

这是某人的一个简单修复:

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.

关于c# - .aspx 代码错误 "Element ' xxxx' 不受支持。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8169447/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com