编译器错误消息:BC30451:未声明名称'cmbY'

时间:2012-11-16 18:40:16

标签: asp.net vb.net

我在此代码中收到了非声明错误。

    Line 23:         If Not Page.IsPostBack Then
    Line 24: cmbY.DataSource = rsFirehose("SELECT LeagueTypeKey, LeagueTypeDescription FROM LeagueType " & _**
    Line 25:                 "WHERE LeagueTypeKey=0 or (Appkey=" & glngAppKey & " AND LeagueTypeKey IN (SELECT Distinct YKey FROM " & _
    Line 26:                 "Division WHERE DivisionTypeKey=" & soaDivisionTypeBracket & ")) ORDER BY LeagueTypeDescription")

第24行是错误的位置:它表示未声明名称“cmbY”。我该如何申报?

1 个答案:

答案 0 :(得分:0)

更正此错误

1.检查控件的拼写 2.检查元素的范围 3.检查会员访问运营商

如果您发布代码,那么我们可以很好地找到它...所以发布您的代码