Sign in | Join
Rate It (1)
Last post 08-07-2008 8:23 PM by mfarshadmehr. 5 replies.
Sort Posts: Oldest to newest Newest to oldest
Hi
When i place OutputCache tag in a user control that used some ajax feature (AjaxControl toolkit for example) the 'AjaxControlToolkit' undefined error dialog appear in browsing page.
I used cach tag this way: <%@ OutputCache Duration="7200" VaryByParam="none" Shared="true"%>
Any help is appreciate.
Hi there,
Add the below code in your web.config file:
<
</
On your aspx page:
<%
Try this and let me know if it still giving you an error.
Thanks for your answer.
I found this in MSDN: This attribute is not supported for @ OutputCache directives included in user controls (.ascx files). So i can't use it in ascx file.
Problem not solved yet and any help is appreciated
Refer the link below. I guess this may be of help to you.
http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/ImplementingCachinginASP.NET11302005072210AM/ImplementingCachinginASP.NET.aspx
One possible reason behind that error is that your are placing the script manager in the usercontrol .
If that's the case , Please move the script manager ( or toolkit script manger) to the page that contains the usercontrol .
Hi,
I checked it,ScriptManger did't placed in usercontrol.
Do you have other suggestion?
Thanks