Hello,
I am building aspx .NET pages, which I want/need to validate as XHTML 1.0
Transitional. Unfortunately, the automatic postback JavaScript function
which is output by asp.net does not include a type attribute, and thus
fails to validate. Is there anyway I can customize or override (ideally on
a system.-wide global level) the way this function is output ?
Currently I get:
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform = document._ctl1;
theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
What I would like is :
<script type="text/javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform = document._ctl1;
theform.__EVENTTARGET.value = eventTarget;
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
Any help appreciated, thanks...
Hadj Ullelah