Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: CSS webresource link can't be properly generated in an inherited control [27873]

$
0
0
Here is the situation, I have a MyCalendar control which is inherited from CalendarExtender. After I update to reference to the new version v15.1.2. I find the calendar.css is not loaded, the web resource link return a 404 error.

As I checked the source code, I find the problem is in ToolkitResourceManager.cs, GetStyleHref, line 138. It use MyCalendar control type in GetWebResourceUrl.


Jim Wang
Comments: The problem is that ``` control.Page.ClientScript.GetWebResourceUrl(controlType, FormatStyleResourceName(name, minified)) ``` won't work for an inherited control. Since control type is the type of the inherited control then. Maybe you could embed the needed resources (CSS) in your custom control's assembly?

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>