Ask a Question related to ASP.NET General, Design and Development.
-
suzy #1
page template for a beginner
i have managed to get page templates working by creating a template.cs file
with the following code. i hope this is the best way?!?!
public class BasePage : Page
{
protected override void OnPreRender(System.EventArgs e)
{
this.Controls.AddAt(1,LoadControl("Header.ascx"));
this.Controls.AddAt(this.Controls.Count-1,LoadControl("Footer.ascx"));
base.OnPreRender(e);
}
}
But this renders the page from top to bottom. How would I insert a menu down
the left hand side of my aspx page using the above technique.
Ideally, I would like to inherit from a user contol, so I can use the html
editor to create the basic table layout, and put placeholders in each key
table cell (ie: header cell, left menu cell, main body cell, footer cell).
If this is possible, what would my code in my aspx pages have to look like
so that it inherits the header, left menu and footer cells from a template,
and the main body cell contains whatever I place in my aspx pages? i would
need to be able to change page titles, css paths on the fly too.
thanks a lot!
suzy Guest
-
web page not showing up with template
:confused; I have created a web page that looks great when I preview it, however now that I've put it on the web site, it shows up without the... -
need help with create page based on template
I created a template on my class computer and i created few pages based on it. Today i moved all the file&folders to my private computer, and when... -
question about page template - please help
hi, i have created a aspx page template by creating a template.cs file which inherits from the page class. In this file I override the OnInit... -
possible to reattach page to template?
I have just started using the template system in DW and apparently some of my pages have become detached from the template, though I didn't do it... -
Page Template
Hi How can I do a page tamplate VB If you have an exapme Thinks



Reply With Quote

