datePicker removed from cms.dll now in controls.dll
While upgrading Umbraco 4.0.4.2 I had some broken custom user controls using datePicker. There are other references on here saying that datePicker was removed around version 4.5, but I couldn't find anywhere saying where it would be added back in. It took me a while to find the answer so I will leave it here for someone else.
To use the datePicker from umbraco classes in a 4.0.4.2 user control, I noticed this declaration:
After some digging, I found that the old datePicker is still available, but now it's in the controls.dll assembly. I thought that I could just change my declaration and everything would work:
I soon realized that the newer .dll's (e.g. controls.dll) that I would need to use in my newer Umbraco installation (in my case 4.9.1) were not compiled in VS 2008 which is what this company had from the last developer. So adding a reference to the new controls.dll and recompile will not work. The newer controls were compiled on the next Visual Studio.
The solution was I had to buy VS 2010 and redo the project in that installation (also noting the new home of the datePicker in controls.dll.) All my old datePicker code then worked. It was not very much work once I knew what to do, but it took me a day to figure all this out. Maybe it will help someone else.
datePicker removed from cms.dll now in controls.dll
While upgrading Umbraco 4.0.4.2 I had some broken custom user controls using datePicker. There are other references on here saying that datePicker was removed around version 4.5, but I couldn't find anywhere saying where it would be added back in. It took me a while to find the answer so I will leave it here for someone else.
To use the datePicker from umbraco classes in a 4.0.4.2 user control, I noticed this declaration:
After some digging, I found that the old datePicker is still available, but now it's in the controls.dll assembly. I thought that I could just change my declaration and everything would work:
I soon realized that the newer .dll's (e.g. controls.dll) that I would need to use in my newer Umbraco installation (in my case 4.9.1) were not compiled in VS 2008 which is what this company had from the last developer. So adding a reference to the new controls.dll and recompile will not work. The newer controls were compiled on the next Visual Studio.
The solution was I had to buy VS 2010 and redo the project in that installation (also noting the new home of the datePicker in controls.dll.) All my old datePicker code then worked. It was not very much work once I knew what to do, but it took me a day to figure all this out. Maybe it will help someone else.
is working on a reply...