M
mac77
Hi,
I am a newbie and I have a problem with validating my rendered aspx
page with the W3C Strict dtd.
To pass the validation I should control the html rendering of <form
runat="server"> and enclose the input hidden fields within a div
element, and change <script language="javascript"> to
<script type="text/javascript">.
Can anybody show me how to do it?
Thanks.
marco
Here is how the <form runat="server"> is rendered:
:?:
<form name="_ctl0" method="post"
action="modInsProdotto.aspx" id="_ctl0">
<input type="hidden" name="__EVENTTARGET"
value="" />
<input type="hidden" name="__EVENTARGUMENT"
value="" />
<input type="hidden" name="__VIEWSTATE"
value="dDw0NzM2ODMxODk7O2w8c2k7c2k7bm87bm87b2ZmZXJ0YTtwdWJibGljYXo7Pj6o6SnT9WcvGPS3YrLf+UHBkEuq0g=="
/>
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if
(window.navigator.appName.toLowerCase().indexOf("netscape")
}
else {
theform = document._ctl0;
}
theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
I am a newbie and I have a problem with validating my rendered aspx
page with the W3C Strict dtd.
To pass the validation I should control the html rendering of <form
runat="server"> and enclose the input hidden fields within a div
element, and change <script language="javascript"> to
<script type="text/javascript">.
Can anybody show me how to do it?
Thanks.
marco
Here is how the <form runat="server"> is rendered:
:?:
<form name="_ctl0" method="post"
action="modInsProdotto.aspx" id="_ctl0">
<input type="hidden" name="__EVENTTARGET"
value="" />
<input type="hidden" name="__EVENTARGUMENT"
value="" />
<input type="hidden" name="__VIEWSTATE"
value="dDw0NzM2ODMxODk7O2w8c2k7c2k7bm87bm87b2ZmZXJ0YTtwdWJibGljYXo7Pj6o6SnT9WcvGPS3YrLf+UHBkEuq0g=="
/>
<script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if
(window.navigator.appName.toLowerCase().indexOf("netscape")
theform = document.forms["_ctl0"];-1) {
}
else {
theform = document._ctl0;
}
theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>