|
For those of you who have used the Microsoft Ajax Framework (Atlas), then you know that the UpdatePanel control is probably one of the more important new additions to ASP.NET development. Anything you place inside of it becomes "ajaxified". Unfortunately, I found a little problem when a link or button that resides inside an UpdatePanel tries to "Redirect" out to another page - the error is rather ugly. After Googling a bit, I found others have had this problem and a fix was mentioned. I was happy to see that the fix worked and it only involves registering a couple of HTTP Modules in the site's Web.Config file.
So here they are:
< httpModules> <add name="WebResourceCompression" type="Microsoft.Web.Handlers.WebResourceCompressionModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <add name="ScriptModule" type="Microsoft.Web.UI.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </httpModules>
|