[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 523
  • Last Modified:

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?
0
IISB
Asked:
IISB
  • 3
  • 2
1 Solution
 
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
 
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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now