开发者

visual studio Microsoft JScript runtime error: 'Sys' is undefined error

my visual studio automatically inserts this

<script type='text/javascript'>new Sys.WebForms.Menu({ element: 'NavigationMenu', disappearAfter: 500, orientation: 'horizontal', tabIndex: 0, disabled: false });</script></form>

code on debugging (it is a default.aspx with default masterpage), which seems to cause the error message with the content

Microsoft JScript runtime error: 'Sys' is undefined

to appear any time I debug a project.

Does anyone know how to solve this visual studio problem? I am not using ajax. It is开发者_Go百科 just default.

Also breakpoints are not hit!!!


Add a script manager to the master page.


If you already have a scriptmanager on the page and it still doesnt work, then place the <script> tag some place after where you put your scriptmanager.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜