>A user control doesn't have html,body and form tags.
>Here is a summary (from a book) of "Converting a web page to a user control":
>1) Remove all HTML,BODY, and FORM tags from page.
>2) If the page includes an @ Page directive, change it to an @ Control directive.
>3) Add a className attribute to the @ Control directive (... allows strong typing of control...).
>4) Change the extension from .aspx to .ascx
>
>Check:
>
http://www.asp.net/QuickStart/aspnet/doc/ctrlref/userctrl/default.aspx>
>and especially for creating site header/footers check cool Master Pages addition to 2.0:
>
>
http://www.asp.net/QuickStart/aspnet/doc/masterpages/default.aspxThis is what I don't like about those interfaces. They take control over the application and apply their own rules. As there were too many restrictions and as I was not able to include all the HTML tags as I use to in the old ASP page, I simply got rid of all that and added this generated HTML code directly from a GetHeader() and GetFooter() from my main object.