且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何解决这个问题呢 ?

更新时间:2022-10-28 18:04:53

仔细检查您的文件:这通常是因为名称重复。

C#在服务器上运行的代码将编译为区分大小写(即 Button1 button1 不同,但生成的HTML由Javasscript执行,不区分大小写。所以它找到了两个完全相同的对象和抱怨。



请在将来不要使用如何解决这个问题请帮助我这样的主题 - 我们已经知道你有问题需要帮助,或者你不会问一个问题。让主题简要概述你的问题 - 十个字左右。只是让我们一眼就知道我们是否知道你遇到问题的区域。

在这种情况下,像Parser Error Message:找到模糊匹配这样的东西会更有帮助。

Server Error in '/' Application.

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Ambiguous match found.

Source Error:


Line 1:  <%@ page language="C#" autoeventwireup="true" inherits="Pages_pages-defualts_Form_P, App_Web_hvwohjul" %>
Line 2:
Line 3:  <!DOCTYPE html>

Check your files carefully: this is normally because of a name duplication.
The C# code that runs on the server will be compiled as case sensitive (i.e. Button1 is different from button1) but the resulting HTML executed by Javasscript, which isn't case sensitive. So it finds two "identical" objects and complains.

And please, in future, do not use a subject like "How to Solve this problem please help me" - we already know you have a problem and need help, or you wouldn't be asking a question. Make the subject a brief summary of you problem - ten words or so. Just enough to let us know at a glance if we know anything about the area you are having problems in.
In this case, something like "Parser Error Message: Ambiguous match found" woudl be more helpful.