got this code:
[Designer(typeof (TextChangedDesigner))]
[ClientScriptResource("TextChanged.TextChangedBehav ior", "TextChanged.TextChangedBehavior.js")]
[TargetControlType(typeof (Control))]
public class TextChangedExtender : ExtenderControlBase
{
[ExtenderControlProperty]
[DefaultValue(500)]
[ClientPropertyName("timeout")]
[RequiredProperty]
public int Timeout
{
get { return GetPropertyValue<int>("Timeout", 500); }
set { SetPropertyValue<int>("Timeout", value); }
}
[ExtenderControlEvent(true)]
[DefaultValue("")]
[ClientPropertyName("textChanged")]
public string OnTextChanged
{
get { return GetPropertyValue<string>("OnTextChanged", String.Empty); }
set { SetPropertyValue<string>("OnTextChanged", value); }
}
}
=======================================
but the [RequiredProperty] always creates an error - extender property not supplied - even though i do pass it a value [even tho' the constructor has a default] at run-time. anyone any ideas?
ta
[Designer(typeof (TextChangedDesigner))]
[ClientScriptResource("TextChanged.TextChangedBehav ior", "TextChanged.TextChangedBehavior.js")]
[TargetControlType(typeof (Control))]
public class TextChangedExtender : ExtenderControlBase
{
[ExtenderControlProperty]
[DefaultValue(500)]
[ClientPropertyName("timeout")]
[RequiredProperty]
public int Timeout
{
get { return GetPropertyValue<int>("Timeout", 500); }
set { SetPropertyValue<int>("Timeout", value); }
}
[ExtenderControlEvent(true)]
[DefaultValue("")]
[ClientPropertyName("textChanged")]
public string OnTextChanged
{
get { return GetPropertyValue<string>("OnTextChanged", String.Empty); }
set { SetPropertyValue<string>("OnTextChanged", value); }
}
}
=======================================
but the [RequiredProperty] always creates an error - extender property not supplied - even though i do pass it a value [even tho' the constructor has a default] at run-time. anyone any ideas?
ta
Comment