While converting my web project from 2003 to 2005, I have two pages which inherite a same page as follows:
Partial Class List1
Inherits clsList
Private
Sub Page_Load(ByVal sender
As System.Object,
ByVal e As System.EventArgs)
Handles MyBase.Load
End Sub
.......
End Class
Partial
Class List2
Inherits clsList
Private
Sub Page_Load(ByVal sender
As System.Object,
ByVal e As System.EventArgs)
Handles MyBase.Load
End Sub
.......
End Class
class List1 works just fine, it can override all the subs in the base class clsList; however, List2 throws lots of error including:
Event "Load" can not be found
Sub Set1 can not be declared overrides because it does not override a sub in the base class
etc.
Obviously, List2 could not recognize the base class. List1 and List2 have similar structure, why one works fine another doesnot? Even I copy the whole List1 then just rename as List3, it throws the errors like List2.
jiamei
0 Points
19 Posts
Urgent Help about VS2005
Jun 14, 2007 01:07 AM|LINK
While converting my web project from 2003 to 2005, I have two pages which inherite a same page as follows:
Partial Class List1
Inherits clsList
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadEnd Sub
.......
End Class
Partial
Class List2Inherits clsList
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadEnd Sub
.......
End Class
class List1 works just fine, it can override all the subs in the base class clsList; however, List2 throws lots of error including:
Event "Load" can not be found
Sub Set1 can not be declared overrides because it does not override a sub in the base class
etc.
Obviously, List2 could not recognize the base class. List1 and List2 have similar structure, why one works fine another doesnot? Even I copy the whole List1 then just rename as List3, it throws the errors like List2.
Anyone help??? Greatly appreciate!!