ReOrderList Example AJAX.NET Toolkit 4.0

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

  1. I changed the Application Pool in IIS for the website to ASP.NET v4.0
  2. The change in the web.config (done automatically in Visual Studio when I changed the target framework to 4.0)
  3. 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.

Tags:

AJAX.NET

blog comments powered by Disqus



My Random Thought

I think the OCW is a great thing to have available to those who are in school, just finished school or just want to educate themself

http://ocwconsortium.org/

John On Twitter

Discounts