Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

RegisterArrayDeclaration not working in IE 11 browser, below code working fine all other browser.

C#
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:

C#
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
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900