A
Andrew Dawson
I have created a custom class with Visual Basic that inherits from the
drop down list web control. In order to update the value properly, I
have tried to implement IPostBackDataHandler, but receive the
following error message:
Interface 'System.Web.UI.IPostBackDataHandler' is already implemented
by base class 'System.Web.UI.WebControls.DropDownList'.
My code is as follows:
Imports System.Web.UI
Public Class CodeDescDropDown
Inherits System.Web.UI.WebControls.DropDownList
Implements INamingContainer
Implements IPostBackDataHandler
Protected Overrides Sub Render(ByVal output as
System.Web.UI.HtmlTextWriter)
Mybase.Render(output)
End Sub
'Class implementation
End Class
For some reason, this error is not created if I use C# to write the
class, but I really want to use VB. Please let me know if you need
more information. Thanks for the help.
drop down list web control. In order to update the value properly, I
have tried to implement IPostBackDataHandler, but receive the
following error message:
Interface 'System.Web.UI.IPostBackDataHandler' is already implemented
by base class 'System.Web.UI.WebControls.DropDownList'.
My code is as follows:
Imports System.Web.UI
Public Class CodeDescDropDown
Inherits System.Web.UI.WebControls.DropDownList
Implements INamingContainer
Implements IPostBackDataHandler
Protected Overrides Sub Render(ByVal output as
System.Web.UI.HtmlTextWriter)
Mybase.Render(output)
End Sub
'Class implementation
End Class
For some reason, this error is not created if I use C# to write the
class, but I really want to use VB. Please let me know if you need
more information. Thanks for the help.