Hello,
my control is updated by a RadAjaxManager which works fine. But now I try to register a client script resource. I don't get an exception when doing this, but the webresource isn't rendered into the page. The path to the embedded resource must be correct because using a wrong path generated an exception.
This is what I do in OnPreRender:
This is what I added to AssemblyInfo.cs:
When I look into the assembly with dotPeek, I can see that the resource name is correct. Why doesn't
the javascript file get rendered into the page? I don't use the RadScriptManager at the moment.
If I don't add the specific AjaxSetting to the RadAjaxManager, the script resource is added to the page.
Thanks for your help!
my control is updated by a RadAjaxManager which works fine. But now I try to register a client script resource. I don't get an exception when doing this, but the webresource isn't rendered into the page. The path to the embedded resource must be correct because using a wrong path generated an exception.
This is what I do in OnPreRender:
ScriptManager.RegisterClientScriptResource(
this
, GetType(),
"Search.MySearch.js"
);
This is what I added to AssemblyInfo.cs:
[assembly: WebResource(
"Search.MySearch.js"
,
"text/javascript"
)]
When I look into the assembly with dotPeek, I can see that the resource name is correct. Why doesn't
the javascript file get rendered into the page? I don't use the RadScriptManager at the moment.
If I don't add the specific AjaxSetting to the RadAjaxManager, the script resource is added to the page.
Thanks for your help!