So, at the end of January, I posted about a clean/easy fix to getting ASP.NET AJAX and Url Rewriting working in tandem.
The approach was pretty simple: just create a new class that inherits from an ASP.NET Form control, and override its RenderAttributes method to 'inject' the location of the rewritten page. It only took a few lines of code, and (if using Master Pages) was pretty painless.
But Scott Guthrie came up with a better solution - using a Control Adapter. The benefits? Simple: you don't need to override any controls. Instead you just drop in a .browser file telling ASP.NET that you'd like to modify your output on the server for ASP.NET Form Controls on the way out, and you're basically done. That makes for a much cleaner option - and you don't need to worry about any problems in the designer that might arise from overridden controls.
Go check out his solution. He provides an excellent overview of how everything works, and even provides the sample code. He asked me to help him test it out to make sure it would meet my needs, and it literally took only 3 minutes to implement - so if you're doing any type of AJAX with ASP.NET 2.0 and need to implement url rewriting with ASP.NET or even with an ISAPI filter, this is the route to go.
i have used scott solution but its not giving me any result means still the updatepanel is not working.
Posted by: kamal | February 04, 2008 at 03:44 AM