Unexpected call to method or property

"Unexpected call to method or property access"  error appears when length property of an object is accessed in IE8. (The object is data bound.)
The same page works fine in IE7.
How to prevent this error?
IISBAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

remorinaCommented:
Hi IISB,
It seems you've stumbled upon a known bug in IE8 which occurs with some ASP.NET controls one of which is ASP.NET menu control

It was said that this was fixed in the latest release of IE8, have first thing I'd do is check if you got the latest release or you're still using a beta version ?

There is a temporary fix to get around this and make IE8 behave like IE7 but this is not recommended as it might cause some other issues, but you could try it though

<!-- Use IE7 mode -->
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  <title>My Web Page</title>
</head>
 
 
If this was related to the ASP.NET menu control I'd check this http://forums.asp.net/t/1229762.aspx
Near the end of the page there is a script that detects the menu control support

Hope this helps

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IISBAuthor Commented:
Could you please provide more details on the bug or link that would provide more info on the bug.

Thank you
0
remorinaCommented:
0
IISBAuthor Commented:
Thank you.
0
remorinaCommented:
You're welcome, hope you get it fixed easily
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Languages and Standards

From novice to tech pro — start learning today.