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.