Hi,
RegisterArrayDeclaration not working in IE 11 browser, below code working fine all other browser.
C# Level Code:
foreach (Category category in list)
{
Page.ClientScript.RegisterArrayDeclaration("g_categories", "new category('" + category.Id + "','" + category.ListName + "','" + category.Rate.ToString().Replace(",", ".") + "','" + category.DExtra.ToString().Replace(",", ".") + "','" + category.Vat.ToString().Replace(",", ".") + "','" + category.LocalExtra.ToString().Replace(",", ".") + "','" + category.ExtraPersent.ToString().Replace(",", ".") + "','" + category.LocalMin.ToString().Replace(",", ".") + "','" + category.Country + "')");
}
javascript Level Code:
function category(gUid, sName, dRate, dDExtra, dVat, dFixedLocal, dExtraPersent, dLocalMin) {
this.guid = gUid;
this.name = sName;
this.rate = parseFloat(dRate);
this.dExtra = parseFloat(dDExtra);
this.vat = parseFloat(dVat);
this.dFixedLocal = parseFloat(dFixedLocal);
this.dExtraPersent = parseFloat(dExtraPersent);
this.dLocalMin = parseFloat(dLocalMin);
}
This method not calling through IE 11.
If I Run IE-11
g_categories is undefined error showing.
can you please give the solution to solve this issues.
Thanks in Advance.
By
Mohankumar.S