Hi,
I need to custom ComboBox control, so i create a class that inherit this control. But i can't use this class because the css resource is loaded is not correct.
Seem that ajaxToolkit use GetWebResourceUrl(control.GetType() ...) that return wrong resource if control.GetType() return wrong project type.
I have work around by adding a ComboBox control to my Controls then remove it.
Do you have any idea to get correct css resource for inherit class of some ajax toolkit control
Thanks
Comments: I found another critical problem of ToolkitResourceManager class: ``` static IEnumerable<string> GetStyleNames(params Type[] controlTypes) { foreach(var type in controlTypes) { foreach(var entry in GetStyleEntries(type)) yield return entry.ResourceName; } yield return Constants.BackgroundStylesName; } ``` This method all always add the Constants.BackgroundStylesName, so if the inherit control from ExtenderControlBase and stay in another assemly can NOT avoid the exception of invalid resource. (Test in Chrome to see the exception easily!)
I need to custom ComboBox control, so i create a class that inherit this control. But i can't use this class because the css resource is loaded is not correct.
Seem that ajaxToolkit use GetWebResourceUrl(control.GetType() ...) that return wrong resource if control.GetType() return wrong project type.
I have work around by adding a ComboBox control to my Controls then remove it.
Do you have any idea to get correct css resource for inherit class of some ajax toolkit control
Thanks
Comments: I found another critical problem of ToolkitResourceManager class: ``` static IEnumerable<string> GetStyleNames(params Type[] controlTypes) { foreach(var type in controlTypes) { foreach(var entry in GetStyleEntries(type)) yield return entry.ResourceName; } yield return Constants.BackgroundStylesName; } ``` This method all always add the Constants.BackgroundStylesName, so if the inherit control from ExtenderControlBase and stay in another assemly can NOT avoid the exception of invalid resource. (Test in Chrome to see the exception easily!)