S
Sam
Namespace system.web.ui
Public Class ReplacableControlCollection
Inherits ControlCollection
End Class
End Namespace
-------------------------------------------------------
Public Shadows ReadOnly Property controls() As
ReplacableControlCollection
Get
Return MyBase.Controls
End Get
End Property
-------------------------------------------------------
Error:
System.InvalidCastException: Unable to cast object of type
'System.Web.UI.ControlCollection' to type
'System.Web.UI.ReplacableControlCollection'.
Line 60: Return MyBase.Controls
-------------------------------------------------------
how do i cast this?
the only thing difference in ReplacableControlCollection from the
original ControlCollection is an added sub "replace()".
Sam.
Public Class ReplacableControlCollection
Inherits ControlCollection
End Class
End Namespace
-------------------------------------------------------
Public Shadows ReadOnly Property controls() As
ReplacableControlCollection
Get
Return MyBase.Controls
End Get
End Property
-------------------------------------------------------
Error:
System.InvalidCastException: Unable to cast object of type
'System.Web.UI.ControlCollection' to type
'System.Web.UI.ReplacableControlCollection'.
Line 60: Return MyBase.Controls
-------------------------------------------------------
how do i cast this?
the only thing difference in ReplacableControlCollection from the
original ControlCollection is an added sub "replace()".
Sam.