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: Hi, thna, I checked how inherited controls behave and clearly see that styles are loaded from the assembly where a custom control is defined. So, you can simply add an empty Background.css file to your project and you will avoid that error in the browser. If you have a counterexample, please attach it here.
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: Hi, thna, I checked how inherited controls behave and clearly see that styles are loaded from the assembly where a custom control is defined. So, you can simply add an empty Background.css file to your project and you will avoid that error in the browser. If you have a counterexample, please attach it here.