I'm having the following issue only on our staging server where opening tags are getting inserted into the code causing issues. This site was imported using the site import/export utility, we had to go this route because a website already exists.
Kentico v6.0.4297
Here is the __doPostBack definition, an extra <script> tag getting inserted just before the closing tag:
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['form'];
if (!theForm) {
theForm = document.form;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
<script></script>
At the end of the page: <form> and <body> getting inserted before their closing tags:
<form></form>
<body></body>
</head></html>
Any ideas what might be causing this?