SKT_01:Hello Tom,
it would be interesting to know which controls you are using and why your "entire page inside the aspnet <form> tags" is wrapped in a HTML table.
The reason for such behavior is probably the adaptive rendering mechanism of ASP.NET. If you could provide such information (code or URL) I can perhaps help you.
Thank you.
I'm sure the adaptive rendering mechanism you speak of is to blame. My code is pretty uncomplicated. This is the output when browsing with a desktop UA:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>***</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<link type="text/css" href="/resources/reset.css" rel="stylesheet" media="all" />
<link type="text/css" href="/resources/screen.css" rel="stylesheet" media="Screen" />
<link type="text/css" href="/resources/print.css" rel="stylesheet" media="print" />
<link type="text/css" href="/resources/handheld.css" rel="stylesheet" media="handheld" />
<script type="text/javascript" src="/resources/main.js"></script>
<link type="text/css" href="/resources/homepage.css" rel="stylesheet" media="Screen" />
<meta id="ctl00_HeadContentPlaceHolder_metaKeywordsTag" name="keywords" content=""></meta>
<meta id="ctl00_HeadContentPlaceHolder_metaDescriptionTag" name="description" content=""></meta>
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" href="/resources/ie7.css" />
<![endif]-->
<!--[if lte IE 6]>
<script language="javascript" type="text/javascript" src="/resources/ie6.js"></script>
<link rel="stylesheet" type="text/css" href="/resources/ie6.css" />
<![endif]-->
</head>
<body>
<form name="aspnetForm" method="post" action="/default.aspx" id="aspnetForm"><div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDw...
.... but notice the difference when I use a mobile browser (or the W3C validator!):
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>***</title>
<link type="text/css" href="/resources/reset.css" rel="stylesheet" media="Screen, print" />
<link type="text/css" href="/resources/screen.css" rel="stylesheet" media="Screen" />
<link type="text/css" href="/resources/print.css" rel="stylesheet" media="print" />
<link type="text/css" href="/resources/handheld.css" rel="stylesheet" media="handheld" />
<script type="text/javascript" src="/resources/main.js"></script>
<link type="text/css" href="/resources/homepage.css" rel="stylesheet" media="Screen" />
<meta id="ctl00_HeadContentPlaceHolder_metaKeywordsTag" name="keywords" content=""></meta>
<meta id="ctl00_HeadContentPlaceHolder_metaDescriptionTag" name="description" content=""></meta>
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="/resources/ie7.css" />
<![endif]--><!--[if lte IE 6]><script language="javascript" type="text/javascript" src="/resources/ie6.js"></script>
<link rel="stylesheet" type="text/css" href="/resources/ie6.css" />
<![endif]-->
</head>
<body>
<form name="aspnetForm" method="post" action="/default.aspx" id="aspnetForm">
<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMT...
So I guess I'm off on a trip to somehow filter out that table markup...