I am developing a module that will use the ASP.NET AJAX Control Toolkit, specifically the calendar popup control.
I am trying to set the locale of the extender so that it uses the UK date format dd/mm/yyyy rather than the US format. Looking at the documentation on the asp.net site is seems I need to set two properties on the ScriptManager in order to do this, EnableScriptLocalization = true & EnableScriptGlobalization = true.
I tried setting these in my code behind file:
protected void Page_Load(object sender, EventArgs e)
{
if (DotNetNuke.Framework.AJAX.IsInstalled())
{
DotNetNuke.Framework.AJAX.RegisterScriptManager();
DotNetNuke.Framework.AJAX.SetScriptManagerProperty(this.Page, "EnableScriptGlobalization", new object[] { "true" });
DotNetNuke.Framework.AJAX.SetScriptManagerProperty(this.Page, "EnableScriptLocalization", new object[] { "true" });
}
}
But I get an error when I try to go to the page, Method 'System.Web.UI.ScriptManager.EnableScriptLocalization' not found.
Has anybody else come across this? The method/property names are correct, but not sure if it's caused by the way I am trying to set them.
Thanks,
Steve