Asp Dot Net Notes for Web Masters RSS 2.0

# Saturday, May 30, 2009
Non-Comptability Issue between ScriptReferences and OutputCache: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=389102

Work around:
  1. Downlaod Script Reference Profiler from codeplex.
  2. Reference the dll in your poject.
  3. Add the control to the aspx page. You can add it to the Visual Studio Toolbox or use LoadControl to add it to the page.
  4. View the page and you will see some text added to the page with all the script references that you need.
  5. Add those references to the script manager on the aspx page.
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference name="MicrosoftAjax.js"/>
        <asp:ScriptReference name="MicrosoftAjaxWebForms.js"/>
        <asp:ScriptReference name="AjaxControlToolkit.Common.Common.js" 
assembly="AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>      <asp:ScriptReference name="AjaxControlToolkit.Compat.Timer.Timer.js"
assembly="AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>      <asp:ScriptReference name="AjaxControlToolkit.Animation.Animations.js"
assembly="AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>      <asp:ScriptReference name="AjaxControlToolkit.ExtenderBase.BaseScripts.js"
assembly="AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/>      <asp:ScriptReference name="AjaxControlToolkit.CollapsiblePanel.CollapsiblePanelBehavior.js"
assembly="AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"/> </Scripts> </asp:ScriptManager>
Now the scripts will be registered by the main page and you can use OutputCache on your user controls.

Saturday, May 30, 2009 5:53:16 PM (GMT Daylight Time, UTC+01:00)  #    Comments [0] - Trackback
Caching
Archive
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
Blogroll
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
I do I.T. Ltd.
Sign In
Statistics
Total Posts: 27
This Year: 0
This Month: 0
This Week: 0
Comments: 22
All Content © 2012, I do I.T. Ltd.