473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

changing the title from a PageBase class

z f
Hi,
if i use a base class for my pages PageBase inherits system.web.page
can i control the title of my inheriting pages without midifying the pages
directly or adding a runat=server to the title element?

TIA, z.
Nov 18 '05 #1
4 1126
I dont believe so, not until Master pages with ver 2.0

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"z f" <zi**@info-scope.co.il> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,
if i use a base class for my pages PageBase inherits system.web.page
can i control the title of my inheriting pages without midifying the pages
directly or adding a runat=server to the title element?

TIA, z.

Nov 18 '05 #2
No soup for you!

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%2*****************@tk2msftngp13.phx.gbl...
I dont believe so, not until Master pages with ver 2.0

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"z f" <zi**@info-scope.co.il> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,
if i use a base class for my pages PageBase inherits system.web.page
can i control the title of my inheriting pages without midifying the pages directly or adding a runat=server to the title element?

TIA, z.


Nov 18 '05 #3
sure, walk the controls collection of the page, inpect the literal controls
inner html looking for <title>. replace the control contents with what you
want. you may have to add the <head> (or even the head if it was not on the
page).

basically the the stuff on the page before the <form> (and after </form>) is
in literal controls, so its easy to modifiy.

-- bruce (sqlwork.com)
"z f" <zi**@info-scope.co.il> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
| Hi,
| if i use a base class for my pages PageBase inherits system.web.page
| can i control the title of my inheriting pages without midifying the pages
| directly or adding a runat=server to the title element?
|
| TIA, z.
|
|
Nov 18 '05 #4
Check out this article, here i have explained how you can do this.
http://www.microsoft.com/india/msdn/articles/87.aspx

--
Saravana
http://dotnetjunkies.com/WebLog/saravana/
www.ExtremeExperts.com
"z f" <zi**@info-scope.co.il> wrote in message
news:#k**************@TK2MSFTNGP11.phx.gbl...
Hi,
if i use a base class for my pages PageBase inherits system.web.page
can i control the title of my inheriting pages without midifying the pages
directly or adding a runat=server to the title element?

TIA, z.

Nov 18 '05 #5

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

Similar topics

31
by: Greg Scharlemann | last post by:
Given some recent success on a simple form validation (mainly due to the kind folks in this forum), I've tried to tackle something a bit more difficult. I'm pulling data down from a database and...
15
by: Ben Mann | last post by:
Hi there, I am starting on an ASP .Net project. I have some examples of using a base class for pages to inherit from to allow additional properties to be used by default. This seems like a good...
5
by: z f | last post by:
the HTML designer for aspx pages don't work is the page inherits from a custom pageBase. any solution? TIA.
1
by: Pablo | last post by:
I do not know like changing the color of bottom of: a menu, of the bar of the title of form, messagebox?
2
by: lprisr | last post by:
Hi, I have double byte characters in the content that I am returning using Web Services. However, the encoding in the xml file returned by Web Services is utf-8 and I am unable to read the...
1
by: Yuk Tang | last post by:
Leading on from a recent topic, "How does child class access parent's variables", I would like to ask, what's the most elegant way of changing a parent/grandparent/great-grandparent's property? ...
1
by: rbinington | last post by:
Hi, I am trying to write a DNN module that has the ability to insert articles into an article repository. I want the users to be able to move pages around and enter text into the FCKEditor. I...
4
tolkienarda
by: tolkienarda | last post by:
hi all I am working on a php driven database program for a literacy program, it will allow them to keep track of classes and students, the part i am strugling with is adding new classes, the...
4
by: sgxbytes | last post by:
Hi, My html has <Table style="year-button-archive" width="60%" > <tr> <td class="gold" > <a title="year">By Year:</a> <td class="gold"> <a id = "2008"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.