how to generate correct html

  • Thread starter Thread starter CreativeMind
  • Start date Start date
C

CreativeMind

hi all ! i hav a problem in design issue!!!
i made a usercontrol named 'header' which is upper part of my every
aspx page and a 'footer' which is the lower part of my every page.
the html structure for header.ascx is like...
<html>
<head>
</head>
<body>
<table>
<tr>
<td> ends here
--------------
the html structure for every page, is
the <form><table><tr><td></td></tr></table></form>
--------------
and for footer.ascx
</td>
</tr>
</table>
</body>
</html>
---------------
on every page, i simply use a <form></form> for current page..and use
@register for header and footer user controls.
-------------------
now the generated html shows like this..
<form><html><head></head><body><table><tr><td><table><tr><td></td></
tr></table></body></html></form> .. u can see cubicrealestate.com and
view source..
---------
with this generated source , my page is working fine in IE, but not in
firefox... if i get the resultant html correct, like <html><head></
head><body><form></form></body></html>.. i m sure , my site will work
fine in firefox... how can i get that correct generated output...
thx..
 
I advise you to drop your design, and use a master page instead of a user
control to control the header and footer.

With your system, you will never get it right in all browsers. Also, it is
better if you let ASP.NET generate the html-tags.

Riki
 
Back
Top