Click here to Skip to main content
14,237,550 members
Rate this:
Please Sign up or sign in to vote.
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
Posted

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100