'AjaxControlToolkit' undefined and cache

Rate It (1)

Last post 08-07-2008 8:23 PM by mfarshadmehr. 5 replies.

Sort Posts:

  • 'AjaxControlToolkit' undefined and cache

    07-26-2008, 1:36 PM
    • Member
      279 point Member
    • mfarshadmehr
    • Member since 09-09-2006, 10:45 AM
    • Neyshabour , Yazd , IR
    • Posts 151

    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.

    Be the best
  • Re: 'AjaxControlToolkit' undefined and cache

    07-28-2008, 6:47 AM
    • Contributor
      2,043 point Contributor
    • kalyan1982
    • Member since 04-10-2008, 8:28 AM
    • Johannesburg, South Africa
    • Posts 353

    Hi there,

    Add the below code in your web.config file:

    <caching>

    <outputCacheSettings>

    <outputCacheProfiles>

    <add name="MyCache" enabled="true" duration="7200" />

    </outputCacheProfiles>

    </outputCacheSettings>

    </caching>

     

    On your aspx page:

    <%@ OutputCache CacheProfile="MyCache" VaryByParam="none"%>

     

    Try this and let me know if it still giving you an error.

    Kalyan Krishna.B
    (Web Developer)

    Email: kalyandotnetdeveloper@gmail.com
  • Re: 'AjaxControlToolkit' undefined and cache

    07-28-2008, 2:46 PM
    • Member
      279 point Member
    • mfarshadmehr
    • Member since 09-09-2006, 10:45 AM
    • Neyshabour , Yazd , IR
    • Posts 151

    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

    Be the best
  • Re: 'AjaxControlToolkit' undefined and cache

    07-29-2008, 1:59 AM
    • Contributor
      2,043 point Contributor
    • kalyan1982
    • Member since 04-10-2008, 8:28 AM
    • Johannesburg, South Africa
    • Posts 353
    Kalyan Krishna.B
    (Web Developer)

    Email: kalyandotnetdeveloper@gmail.com
  • Re: 'AjaxControlToolkit' undefined and cache

    07-29-2008, 5:13 PM
    • All-Star
      59,545 point All-Star
    • anas
    • Member since 09-21-2006, 8:31 AM
    • Palestinian Territory, Occupied
    • Posts 6,742
    • Moderator

    Hi

    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 .

    Regards,

    Anas Ghanem | Blog

  • Re: 'AjaxControlToolkit' undefined and cache

    08-07-2008, 8:23 PM
    • Member
      279 point Member
    • mfarshadmehr
    • Member since 09-09-2006, 10:45 AM
    • Neyshabour , Yazd , IR
    • Posts 151

    Hi,

    I checked it,ScriptManger did't placed in usercontrol.

    Do you have other suggestion?

    Thanks

    Be the best
Page 1 of 1 (6 items)