Each time I update the Ajax control version I have weeks of errors caused by cached entries on search engines. They use a url which includes the ajaxcontrolkit version. As this older version cannot be found an error is raised.
It would be nice if this type of url was not generated but Im not sure why. But most importantly I would like to either rewrite the url or trap and redirect to the correct url. Im unsure how to do either of these and would welcome some help?
Unless
the default for combineScripts = "true" it must be being set somewhere. I dont really understand all this stuff but would like the url not to show the hidden field and version informatin.
nigelstephen...
Member
7 Points
8 Posts
version problem for cached urls
Jan 15, 2013 10:48 AM|LINK
Each time I update the Ajax control version I have weeks of errors caused by cached entries on search engines. They use a url which includes the ajaxcontrolkit version. As this older version cannot be found an error is raised.
The url Im talking about is like this. http://www.mysitezzzzzz.co.uk/pc/hp-cm2320-toner-black?_TSM_HiddenField_=ctl00_MainContent_ToolkitScriptManager1_HiddenField&_TSM_CombinedScripts_=%3B%3BAjaxControlToolkit%2C+Version%3D4.1.51116.0%2C+Culture%3Dneutral%2C+PublicKeyToken%3D28f01b0e84b6d53e%3Aen-US%3A07ead49c-3169-4e2b-b447-bacc452e967a%3Ade1feab2%3Af9cec9bc%3Aab09e3fe%3Af2c8e708%3A87104b7c
It would be nice if this type of url was not generated but Im not sure why. But most importantly I would like to either rewrite the url or trap and redirect to the correct url. Im unsure how to do either of these and would welcome some help?
Thanks, Nigel
Song-Tian - ...
All-Star
43705 Points
4304 Posts
Microsoft
Re: version problem for cached urls
Jan 16, 2013 08:35 AM|LINK
Hi,
Make sure you install the correct version of the AjaxControlToolkit:
Version 3.0.20229 2008-02-29 release of the AJAX Control Toolkit targets the official release of .NET Framework 3.5 and Visual Studio 2008.
Version 1.0.20229 You can also download the Toolkit for .NET Framework 2.0, ASP.NET AJAX 1.0 and Visual Studio 2005.
Version 3.0.40412
April 12, 2010 release of the AJAX Control Toolkit for ASP.NET 3.5 Service Pack 1 and Visual Studio 2008 SP1.
Version 4.1.51116.0
Nov 16 2011 release of the AJAX Control Toolkit for ASP.NET 4.0 and Visual Studio 2010
Version 4.1.60919
September 2012 release of the AJAX Control Toolkit for ASP.NET 4.5 and Visual Studio 2012
Then you could add the Ajax Control Toolkit to the VS Toolbox step by step at:http://www.asp.net/ajaxlibrary/act.ashx
Feedback to us
Develop and promote your apps in Windows Store
nilsan
All-Star
16962 Points
3725 Posts
Re: version problem for cached urls
Jan 16, 2013 08:54 AM|LINK
I don't understand how is it appending hidden fields and scriptmanager in URL?
EDIT:
When I view source of your page, I found below rendered code:
It seems you're using Combine Scripts feature of Ajax Toolkit. Please check this out and you might want to look at this too.
Blog | Get your forum question answered | Microsoft Community Contributor 2011
nigelstephen...
Member
7 Points
8 Posts
Re: version problem for cached urls
Jan 18, 2013 11:28 AM|LINK
This is what Im using
<ajaxtoolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" />
Unless the default for combineScripts = "true" it must be being set somewhere. I dont really understand all this stuff but would like the url not to show the hidden field and version informatin.