html rendering

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")
theform = document.forms["_ctl0"];
}
else {
theform = document._ctl0;
}
theform.__EVENTTARGET.value =
eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top