J
Jimmy Seow
Dear All,
I have a situation where I created a ASP.NET Composite Control using a textbox and a button.
If I set the control to "disabled", the textbox and button gets greyed out but are actually not disabled because I can still type in something into the textbox and click on the button.
So, I created an Enabled property and overridden the base Enabled property and that works just fine.
<Category("Appearance"), Description("blah blah.")> _
Public Overrides Property Enabled() As Boolean
Get
EnsureChildControls()
Return MyBase.Enabled
End Get
Set(ByVal Value As Boolean)
EnsureChildControls()
_txtText.Enabled = Value
_cmdPick.Enabled = Value
MyBase.Enabled = Value
End Set
End Property
The problem is that when I try to set the Enabled property on the Webform itself that it gives me an error message - "Ambiguous Match Found" in the code below.
<pop
opuppicker enabled="False" id="PopupPicker1" runat="server" ></pop
opuppicker>
Any idea why? It doesn't just occur with the Enabled property, it also occurs for other overridden properties like Visible.
Thanks for any help.
I have a situation where I created a ASP.NET Composite Control using a textbox and a button.
If I set the control to "disabled", the textbox and button gets greyed out but are actually not disabled because I can still type in something into the textbox and click on the button.
So, I created an Enabled property and overridden the base Enabled property and that works just fine.
<Category("Appearance"), Description("blah blah.")> _
Public Overrides Property Enabled() As Boolean
Get
EnsureChildControls()
Return MyBase.Enabled
End Get
Set(ByVal Value As Boolean)
EnsureChildControls()
_txtText.Enabled = Value
_cmdPick.Enabled = Value
MyBase.Enabled = Value
End Set
End Property
The problem is that when I try to set the Enabled property on the Webform itself that it gives me an error message - "Ambiguous Match Found" in the code below.
<pop
Any idea why? It doesn't just occur with the Enabled property, it also occurs for other overridden properties like Visible.
Thanks for any help.