J
Jibber
Sorry for the similar post, but I have clarified the problem a bit more. The
issue is: how do I use an extended .NET control in a webform using VS2005.
In my case, I am overriding the Render for a RadioButtonList control, so I
don't need a user control. So, I just have a very simple class file that
inherits the RadioButtonList and overrides the Render. I am trying to use
this in a Web Site project on a webform.
<%@ Register TagPrefix="MY" TagName="MyRadioButtonList" %>
<MY:MyRadioButtonList ID="myID" Runat="server">
</MY:MyRadioButtonList>
Why doesn't this work?
The compiler doesn't understand the tags and complains. But, when I try to
add a Src attribute, it complains that it has to be a usercontrol. But, it
can't be a user control because its not a Page or UserControl...its a custom
RadioButtonList.
issue is: how do I use an extended .NET control in a webform using VS2005.
In my case, I am overriding the Render for a RadioButtonList control, so I
don't need a user control. So, I just have a very simple class file that
inherits the RadioButtonList and overrides the Render. I am trying to use
this in a Web Site project on a webform.
<%@ Register TagPrefix="MY" TagName="MyRadioButtonList" %>
<MY:MyRadioButtonList ID="myID" Runat="server">
</MY:MyRadioButtonList>
Why doesn't this work?
The compiler doesn't understand the tags and complains. But, when I try to
add a Src attribute, it complains that it has to be a usercontrol. But, it
can't be a user control because its not a Page or UserControl...its a custom
RadioButtonList.