Hey there,
First let me say that I am not a backend developer, I much prefer the front end of things.
I'm not sure where I should post this but since it resides in front end validation, i'll put it here.
I am using .Net 3.5 with the Ajax Toolkit and my developer has stated that you cannot modify the code that is generated by the scriptManager in regards to javascript calls. My first question is, is this true? My second question is, how do we do this if at all possible?
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>
All I would like to do is add "language='javascript'" to the script call in order for my page to validate xhtml standards compliant.
If this at all possible that would be great. If not, it would be quite useful to people if it could be done at some point.
Thanks for your help.