Wednesday, November 10, 2010

Styles

Even when the Style.css clearly says "This file will never be overwritten.", it WILL be overwritten when changing application Theme.

UPDATE: As Style.css is inside theme's folder, and folder is deleted and recreated when theme change, it gets deleted on theme changing. Always make a backup copy of it in application's root folder.

Tuesday, November 9, 2010

Date & Number Format (Culture Info)

1-In .\App_Code\Shared\BaseApplicationPage.cs

protected override void InitializeCulture()
{
string selectedLanguage = (string)Session["AppCultureUI"];

if (!string.IsNullOrEmpty(selectedLanguage))
{

System.Threading.Thread.CurrentThread.CurrentCulture =
System.Globalization.CultureInfo.CreateSpecificCulture(selectedLanguage);
System.Threading.Thread.CurrentThread.CurrentUICulture =
new System.Globalization.CultureInfo(selectedLanguage);
}
base.InitializeCulture();
}


2-In ApplicationWebForm.js

circa line 3487

else
{
// if date formatter not disabled.

remove comments on "else" bloc.