(change decimal format to use .(decimal) if using , (comma)
// // string v1 = _objValue.ToString().Replace('.', ',');
// System.IFormatProvider cultureUS =
//new System.Globalization.CultureInfo("en-US");
// string CultureName = Thread.CurrentThread.CurrentCulture.Name;
// CultureInfo ci = new CultureInfo(CultureName);
// if (ci.NumberFormat.NumberDecimalSeparator != ".")
// {
// // Forcing use of decimal separator for numerical values
// ci.NumberFormat.NumberDecimalSeparator = ".";
// Thread.CurrentThread.CurrentCulture = ci;
//lbl.Text = String.Format(_scheduleCellProperties.format, Double.Parse(_objValue.ToString(), cultureUS));
OR
<globalization uiCulture="en-US" culture="en-US" requestEncoding="utf-8" responseEncoding="utf-8" enableClientBasedCulture="false"/>
No comments:
Post a Comment