Duncan
Duncan

Reputation: 10291

ASP.NET with Javascript disabled

As you probably know, ASP.NET injects some javascript code to the form, like so:

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>

Now, the problem with this is that if I turn Javascript off (using WebDev toolbar in FF), I get

"Browser does not support script" at the top of the page.

Does anyone know how I can set this tag, for this bit of auto-injected js?

Thanks Duncan

Upvotes: 3

Views: 211

Answers (1)

Jan Jongboom
Jan Jongboom

Reputation: 27322

This is not a notification from asp.net. Are you sure there are no <noscript> blocks on your website?

Perhaps you are using some third party menu component?

Upvotes: 1

Related Questions