Hello, my company has a standard format that I must follow when creating a
page.
The top portion of the page contains a standard heading which should be
placed on each page. This "heading" has a form and some javascript which has
"action" which invokes some javascript.
I am trying to figure out how I can standardize this so that I do not have
to copy this code to each and every page. I thought I might be able to use a
"User Control", but I do not think I can do this because it would involve
another form and I am not too sure if one form can contain another form. I
think you can have more then one form provided that only one of them is
marked with a "runat=server". But I do not think one form can contain
another form.
Can I create a base page with all of this code in it and them inherit that
page on subsequent pages? I am not quite sure how you would do this
inheretance ...you would have an "aspx" page and then you would have your
code behind on the base page a "aspx.cs". When you create your first page
what statement would you place in that page to inherit from the base page?
Is there some property you can set in Visual studio to tell it that all new
pages which are create will inherit from this base page? The base page would
or would not contain the form with the runat parameter?
Thanks in advance for your assistance....