On a hunch is sounds like you should be using Master pages. Master pages act like templates with prebuilt controls already defined. You could have a 'Login' master page and a 'Home' master page and when you create a page include the master page with the behavior and layout you need predefined.
This question sounds like you are trying to reinvent the wheel.