mbiguous match found

mbiguous match found,注意程序變量命名的規范性

2008-08-08 18:29

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="Modules_Route_Admin_Route_sectionlist, App_Web_ms6jkfs4"  %>Line 2:  Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

 

查了N久,以為是發布的時候出了什么騾子,結果查了一下,是cs變量的問題,差點暈倒:

protected string RNO = "";

結果,一個Label控件的名字也叫rno,只不過是小寫的????

呵呵,值得注意了,天!

檢查了半天,終于查到。

把控件的名字改為lblRNO,其實平時注意命名規范,這種問題應該不會發生,不過發生了,你也多知道了一個知識點,一個陷阱!

posted @ 2010-12-17 18:41  sunfny  阅读(199)  评论(0编辑  收藏  举报