i am creating a site using c#/asp.net and would like to know what the best way to design my site would be.
what i want is for each page to have the same menu bar on top of it, with your standard clickable buttons like Home, Contact Us and whatever else. each link would link to its own page.
currently, i have one page "default.aspx" and i load a custom control menu to the top of this page. a large area of the default area is a placeholder which i load the content into.
so the end result is that default.aspx is always the web page that is loaded and the placeholder is what changes. this way i can have my menu loaded as a control.
However, now that i am getting into Forms authentication and such i see that it will take some trickery to implement this the way i have the site now. Since default.aspx is always the loaded page so it would be difficult to restrict access to other .ascx files i make. At least from what i understand about authentication sofar it would be.
So the question is, is my method of having one page always load and the content loaded into a placeholder the way to go, or is there a better way to have a site design that would be able to use a menu on each page without having to put code in on each page to use that menu?
what i want is for each page to have the same menu bar on top of it, with your standard clickable buttons like Home, Contact Us and whatever else. each link would link to its own page.
currently, i have one page "default.aspx" and i load a custom control menu to the top of this page. a large area of the default area is a placeholder which i load the content into.
so the end result is that default.aspx is always the web page that is loaded and the placeholder is what changes. this way i can have my menu loaded as a control.
However, now that i am getting into Forms authentication and such i see that it will take some trickery to implement this the way i have the site now. Since default.aspx is always the loaded page so it would be difficult to restrict access to other .ascx files i make. At least from what i understand about authentication sofar it would be.
So the question is, is my method of having one page always load and the content loaded into a placeholder the way to go, or is there a better way to have a site design that would be able to use a menu on each page without having to put code in on each page to use that menu?