Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP:menu error occuring

Tags:

c#

asp.net

I am getting SCRIPT5009: WebForm_GetElementByTagName is undefined error when I have been using asp menu in IE 10 instead of IE 9 (which is earlier installed).

When I tried to find it I found this is occurring because when WebResource.axd is generated it does not have definition for this method.

On further findings I found .net does not recognizes IE 10 as in browser file its entry is missing.

So for this we have patch available which fixes this problem, however I want to add any javascript or code which will add defination for WebForm_GetElementByTagName orthat resolves error.

like image 890
user1511953 Avatar asked May 17 '26 16:05

user1511953


1 Answers

Scott Hanselman covered this problem some time ago. If you don't want to install the patch, you'll have to use the workaround suggested by Greg Smalter in the comments: set the Page.ClientTarget property to "uplevel", either in the Page_Init event or the <%@ Page ... %> directive.

like image 77
Richard Deeming Avatar answered May 20 '26 07:05

Richard Deeming