编译器错误消息: CS0117: “index”并不包含“txtname”的定义 源错误: 行 21: this.txtname.Text = "";

为了修改网页进入页面,改了源代码名称之后出现的问题,不知道怎么办,希望大虾们多多帮忙啊,帮助解决问题的,一定会提高悬赏额度的!

Compiler Error CS0117

'type' does not contain a definition for 'identifier'
This error occurs in some situations when a reference is made to a member that does not exist for the data type.

编译错误 CS0117
类型中不包括对标识符的定义。(说得中国话点:对象或方法在使用前没有定义。)
当引用一个在数据类型中并不存在的成员时,会发生此错误。

根据错误编号,你出错的原因可能是,txtname,没有在this对象中定义,你使用了未被定义的txtname.
温馨提示:答案为网友推荐,仅供参考
相似回答