ASP.NET with Javascript Disabled

As you probably know, ASP.NET injects javascript code into a form, for example:

<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 is that if I turn off Javascript (using the WebDev toolbar in FF), I get

"The browser does not support the script" at the top of the page.

Does anyone know how I can set this tag for this js auto input bit?

Thanks Duncan

+3
source share
1 answer

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

Perhaps you are using any component of a third-party menu?

+1
source

Source: https://habr.com/ru/post/1726794/


All Articles