18. August 2010 05:49
If you have read my post regarding on how to implement the ReOrderList, it's not too bad at all. However, I got stumped when I upgraded one of my web application from ASP.NET 2.0 to ASP.NET 4.0. This meant a few main things
- I changed the Application Pool in IIS for the website to ASP.NET v4.0
- The change in the web.config (done automatically in Visual Studio when I changed the target framework to 4.0)
- Upgrading my AjaxToolkit to the latest version to work with ASP.NET 4.0
Everything seem to be working well except for the ReOrderList.
I should mention the <pages> element in my web.config looks like this because I switched what Visual Studio did to it.
I took out the attributes controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"
Turns out that the ReOrderList seem to need the clientIDMode="AutoID" in the web.config. I'm not 100% sure but everytime I took it out, the ReOrderlist stopped working, and everytime I added it back it the ReOrderlist worked as expected.
So if you are in a situation like me where you do not have the attributes above in your web.config it's as simple as adding the ClientIDMode="AutoID" attribute to the ReOrderList. Example like so:
That should do it for you. Again, please see my post regarding how to implement the ReOrderList.
3f12f1b6-5eb7-4596-8201-0b29f1201bae|6|4.8
Tags:
AJAX.NET