I am currently working on an ASP.NET 4 web application. Upon adding a Menu control to the web form, I noticed that it triggers the generation of the following code just before the closing </form>
tag:
<script type='text/javascript'>
new Sys.WebForms.Menu({ element: 'NavigationMenu', disappearAfter: 500,
orientation: 'horizontal', tabIndex: 0, disabled: false });
Everything works fine without any issues as long as I do not implement URL Rewriting. However, when I attempt to use URL Rewriting on the website, Visual Studio starts throwing a JavaScript exception stating "Sys is undefined."
This issue seems to occur most frequently when I make changes related to positioning in the CSS file, although there are instances where the exceptions appear randomly.
Is there a way to resolve this problem?