473,473 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Page titles

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
Nov 18 '05 #1
3 964
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

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Gilgamesh" <gi*******@xteranet.com> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
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

Nov 18 '05 #2
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.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
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

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Gilgamesh" <gi*******@xteranet.com> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
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


Nov 18 '05 #3
You could use a similar approach for the other header items.

Or you might choose to make your header into a web user control.
Here's more info:
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Gilgamesh" <gi*******@xteranet.com> wrote in message
news:O%********************@TK2MSFTNGP09.phx.gbl.. .
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.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O7**************@TK2MSFTNGP09.phx.gbl...
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

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Gilgamesh" <gi*******@xteranet.com> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
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



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: MP | last post by:
I run a WebTrends (Enterprise Suite v5.5c) Web traffic analysis report and find that some page titles show up in the Top Pages section, but some pages that have titles are listed without them....
1
by: tesc | last post by:
I'm sure this is pretty simple but I'm having a hard time with it. I have a report that has multiple columns and have to change some of the titles in the page header. As a result, the titles don't...
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
3
by: Brian Henry | last post by:
I changed the title in the header of the master page and when its in the browser it still says "Untitled page" how do i get it to say what i want it to? also, how can i get unique titles for each...
7
by: GaryDean | last post by:
In my old 1.1 apps the default was MS_POSITIONING="GridLayout" and Textboxes and labels and such always had POSITION: absolute; and I never had any distortion when the page was rendered. Life was...
0
by: Spondishy | last post by:
Hi, I have a fairly simple httpmodule tied in to the endrequest event of the pipeline that writes the page title to the iis log. The problem is, I have a page where the title is changed in the...
3
by: goldenv | last post by:
Hi all, I have worked an open source javascript + html page that has the potential to replace your existing browser home page. If you are interested in trying it out, or learning more about it, it...
7
by: Geoff Cox | last post by:
Hello, I have the code below in which the play1.gif image is visible and when the associated sound has been played the the 2 images same1.gif and different1.gif appear. Once one of these has...
2
by: Stan | last post by:
Hi I am using Visual Studio 2005 for developing a web-site. My pages include a master page. I have a problem with document titles. When I enter them in the property window of the designer...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.