Hi,
I have been using V6 of the ASPX Server Control on my site now for a few years. It has been quite successful and I have been very pleased with it. I thought I would go ahead and upgrade to V7, just to be up-to-date.
I have installed V7 on my test server and noticed a problem with the styling on my existing template. I went back and applied the default template and looked at the resulting generated ASPX page.
It seems that for some reason the control is inserting the <form> at the very beginning of the page... even before the !DOCTYPE declaration. While it seems "work" in my test environment, my server administrator says that this is a mal-formed page and would be a concern to put into production this way. He says the <form> must be inserted inside the <body> of the document.
Am I doing something wrong?
Here is a clip from the resulting aspx page....
--------------------------------------------------------------
<form method="post" action="search.aspx?zoom_sort=0&zoom_xml=0& ;zoom_query=hk" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTYzMDI3NTc3N2RkAGmJ9riOpcvpJIECXEJgBGeF5yg nx7KTYwmhiqXgrVI=" />
</div>
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="7BAD5775" />
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
This is the search template file (search_template.html) which contains the layout
to your search page.
Note that you can not access the search function from this page. Instead,
you should open or link to the search script, which is a file named "search.php",
"search.asp", or "search.cgi".
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>......
I have been using V6 of the ASPX Server Control on my site now for a few years. It has been quite successful and I have been very pleased with it. I thought I would go ahead and upgrade to V7, just to be up-to-date.
I have installed V7 on my test server and noticed a problem with the styling on my existing template. I went back and applied the default template and looked at the resulting generated ASPX page.
It seems that for some reason the control is inserting the <form> at the very beginning of the page... even before the !DOCTYPE declaration. While it seems "work" in my test environment, my server administrator says that this is a mal-formed page and would be a concern to put into production this way. He says the <form> must be inserted inside the <body> of the document.
Am I doing something wrong?
Here is a clip from the resulting aspx page....
--------------------------------------------------------------
<form method="post" action="search.aspx?zoom_sort=0&zoom_xml=0& ;zoom_query=hk" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTYzMDI3NTc3N2RkAGmJ9riOpcvpJIECXEJgBGeF5yg nx7KTYwmhiqXgrVI=" />
</div>
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="7BAD5775" />
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
This is the search template file (search_template.html) which contains the layout
to your search page.
Note that you can not access the search function from this page. Instead,
you should open or link to the search script, which is a file named "search.php",
"search.asp", or "search.cgi".
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>......
Comment