Implementing IPostBackDataHandler in a custom web control that inherits from DropDownList with Visual Basic
Posted on 2004-08-09
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:
Public Class CodeDescDropDown
Protected Overrides Sub Render(ByVal output as System.Web.UI.HtmlTextWriter)
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.