Best thing to do would be to create a ASP.Net page, then create a new user
control and drop it on the page. It should give you some insight on what
you have to do.
There's no hard rule for what an uc contains, but you are right, typically
the enclosing page contains the <html><head>....</head><body><form
runat="server">...</form></body></html> and often times more. So you'll
likely not want that in your UC. Also the uc makes use of a @Control
directive, not @Page directive. As I said, you normally put the form
runat="Server" in the page, and put the user control within the form - that
way you can have multiple uc. Placeholders are good for storing controls.
Karl

Signature
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!
> Hello,
>
[quoted text clipped - 18 lines]
> Many questions :) Any answers are appreciated!
> Thanks/Ben
Ben Amada - 29 Oct 2005 22:36 GMT
> Best thing to do would be to create a ASP.Net page, then create a new user
> control and drop it on the page. It should give you some insight on what
[quoted text clipped - 9 lines]
> controls.
> Karl
Hi Karl,
Thanks for addressing my questions. As you suggest, I'll go ahead and
create a new web form, add a user control to it and see what code VS
generates.
Regards,
Ben