8 Apr 2011

Localization of jQuery UI DatePicker with ASP.NET

Hello folks! Do you want to make your jQuery DatePicker play nicely with your ASP.NET localization settings?

When you set up your DatePicker inputs on the page, try this:

dayNamesMin: ['<%= string.Join("', '", System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortestDayNames) %>'],
monthNames: ['<%= string.Join("', '", System.Globalization.DateTimeFormatInfo.CurrentInfo.MonthNames) %>'],
monthNamesShort: ['<%= string.Join("', '", System.Globalization.DateTimeFormatInfo.CurrentInfo.AbbreviatedMonthNames) %>']

6 Apr 2011

DevExpress ASP.NET Chart : Trial message problem

Well this was annoying and wasted half a day!

We have a registered copy of DevExpress which we use on a site for charting.
We deployed our ASP.NET site to the live server.
We deployed the registered DevExpress DLLs to the site bin folder.
(Find them in C:\Program Files (x86)\DevExpress 2010.1\Components\Sources\DevExpress.DLL - Don't copy the *.design.dll files though)

The web chart pages worked but displayed a message about using the TRIAL version of DevExpress.

Turns out that VS2010 was creating a licenses.licx file in the root of the project which was screwing it up. Annoyingly, the licx file didn't show in the Solution Explorer until you click the little "Show All Files" icon.

Solution: We had to delete the licenses.licx file, then rebuild the project, then redeploy.

More info: http://community.devexpress.com/blogs/ctodx/archive/2009/03/06/licenses-licx-file-woes.aspx
If I helped you out today, you can buy me a beer below. Cheers!