Including asp.net pages i another asp.net page
-
Is it possible to include asp.net code in a .aspx page? What I want to do is create a structure for my pages. So I can create stuff like a header, a menu, a footer, and a presentation part. So bascially, when I create a new .aspx page I copy code from a template to the new page. That template contains the various parts the page consists of. It also contains a part where the parts that are unique to this page can be inserted. Is this possible without using frames? Is there some kind of include that can import code to a .aspx file?
-
Is it possible to include asp.net code in a .aspx page? What I want to do is create a structure for my pages. So I can create stuff like a header, a menu, a footer, and a presentation part. So bascially, when I create a new .aspx page I copy code from a template to the new page. That template contains the various parts the page consists of. It also contains a part where the parts that are unique to this page can be inserted. Is this possible without using frames? Is there some kind of include that can import code to a .aspx file?
You want to create your header/footer/menu as controls and place them on your page. In asp.net 2.0, you could create a master page instead, but goodness knows when that will arrive. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
-
Is it possible to include asp.net code in a .aspx page? What I want to do is create a structure for my pages. So I can create stuff like a header, a menu, a footer, and a presentation part. So bascially, when I create a new .aspx page I copy code from a template to the new page. That template contains the various parts the page consists of. It also contains a part where the parts that are unique to this page can be inserted. Is this possible without using frames? Is there some kind of include that can import code to a .aspx file?
u can use usercontrols .ascx and have a table in the aspx then drag and drop the user control. u can use this for all sort of controls that is menu, header, footer.......:rose:;) Loving Code, R. Senthil Kumaran