I have Master Page which is used by aspx page which is using ascx.
MasterPage -> aspx Page -> ascx Page
Master page contains
<telerik:RadWindowManager>
<ConfirmTemplate>
<style></style>
</ConfirmTemplate>
</telerik:RadWindowManager>
ascx contains
<telerik:RadWindowManager>
<Windows>
<telerik:RadWindow OnClientShow = "wndChoiceShow" OnClientClose = "wndChoiceClose"></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
Here, methods "wndChoiceShow" and "wndChoiceClose" are declared in JS file which is registered in Page_Init of ascx Page.
When browser cache is cleared, load is giving error "wndChoiceShow and wndChoiceClose are undefined". After that error is not coming.
Error is only coming first time after clearing the cache.
When I moved the methods "wndChoiceShow" and "wndChoiceClose" in <telerik:RadScriptBlock> block of master page no error is coming.
But this is not required. Need to have these methods in JS file only and should be registered in user control only.
Please help to resolve the issue.