Hi, all
I tested the skin function of RAD AJAX control and met with a problem on loading webresource, here is the original link of the article.
http://www.telerik.com/help/aspnet-ajax/introduction-skins-external-assembly.html
I tried to read an image from build-in RAD Control, and add a css code block like below. (In fact, I test this because I want to show a custom html element with it's style consistent with different skins in RAD)
But unfortunately the page won't compile and report a CS0118 error:
CS0118: Telerik.Web.UI.WebResource is a 'type' but is used like a 'variable'.
My question is, where exactly "WebResource" method is defined in asp.NET? how to solve this error while telerik control itself has a "WebResource" Class?
Thanks in advance.
I tested the skin function of RAD AJAX control and met with a problem on loading webresource, here is the original link of the article.
http://www.telerik.com/help/aspnet-ajax/introduction-skins-external-assembly.html
I tried to read an image from build-in RAD Control, and add a css code block like below. (In fact, I test this because I want to show a custom html element with it's style consistent with different skins in RAD)
.style
1
{
background-image
:
url
(
'<%=WebResource("Telerik.Web.UI.Skins.Black.Common.loading.gif")%>'
);
width
:
100%
;
}
But unfortunately the page won't compile and report a CS0118 error:
CS0118: Telerik.Web.UI.WebResource is a 'type' but is used like a 'variable'.
My question is, where exactly "WebResource" method is defined in asp.NET? how to solve this error while telerik control itself has a "WebResource" Class?
Thanks in advance.