Page titles

  • Thread starter Thread starter Gilgamesh
  • Start date Start date
G

Gilgamesh

Hi there,
I've got a dozen pages in my asp.net application, and I want all the pages
to read their titles from an XML file. I tried to implement is using XSL but
haven't had any luck. is there a way to do this?

Thanks,
Gilgamesh
 
The .NET framework has rich XML capabilities built in. There are a variety
of ways you can load data from an XML file.
Once you've done that, you can set the page title through code by adding the
runat="server" attribute to your title tag.
Here's a good example:
http://www.aspalliance.com/kenc/faq5.aspx
 
This is great, I appreciate it. To take it one step further, how do I read
page hedaers in the same fashion? I want each page to have a different
header on the top which might be different from page titile.


Thanks,
G.
 
Back
Top