CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 4/16/2005 8:04:12 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 23 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
yaip
Asp.Net User
Setting the Title4/16/2005 8:04:12 PM

0/0

I have a Master Page whose title I have:

    <title title="ABC, Inc.">ABC, Inc.</title>


In my web page, in Page_Load, I have:

      Me.Page.Title = Me.Master.Page.Title & " - Roles"

When I run this, I get "Untitled Page - Roles". What am I doing wrong?

Thanks

I love computers because: MY WISH IS THEIR COMMAND :)

<Website>

ByReckon
Asp.Net User
Re: Setting the Title4/16/2005 9:57:12 PM

0/0

Hello yaip,

Has your <head> tag an attribute "runat=server" in your MasterPage?

If so, all you need is to code in your content page:

Me.Header.Title = Master.Page.Header.Title & " - Roles"

Though you can do it in the Page_Load Event,  I have a book on my hand which tells that the Title Property is set in the Init Event.

The snippet I showed you above works under VWD Xpress Beta 1 (anxious to get Beta 2)

Hope this helps.

Best Regards.

 


VB .Net Coder - Apologize my C# nescience
Best Regards.
yaip
Asp.Net User
Re: Setting the Title4/17/2005 2:31:12 AM

0/0

Thanks for the tip. I did a bit more investigation on my code and realized that when a new page is created the title is set to "Untitled Page". So I see Untitled Page - Roles. If I blank out the title, it starts working. It then picks up the Master Page title. But if I have anything in the title of my "slave" page, it overrides it.

BTW, I am also anxiously waiting for Beta 2. After working on Beta 1, I sometimes wonder how did I ever program Wink [;)]

Thanks

I love computers because: MY WISH IS THEIR COMMAND :)

<Website>

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Web Design in a Nutshell: A Desktop Quick Reference Authors: Jennifer Niederst, Jennifer Niederst Robbins, Pages: 618, Published: 2001
Examination of State and Substate Economic Data Sources for Use in Setting JTPA Title II-A and Title II Performance Levels Authors: Incorporated CSR, Employment and Training Administration, United States, Pages: 0, Published: 1984
Techniques for Goal and Objective Setting: State Experiences and Suggested Approaches in Response to Title XX of the Social Security Act Authors: Edmund H. Armentrout, Gerald T. Horton, Carol J. Latta, Pages: 0, Published: 1976
Objective Setting for Illinois Libraries: Highlights of the 1978 Workshops Sponsored by the Illinois Library Association with LSCA Title IV Funds Made Available Through the Illinois State Library Authors: Patricia Senn Breivik, Illinois Library Association, Pages: 0, Published: 1978
Goal and Objective Setting in a Title XX State Social Services Planning System Authors: Gerald T Horton, Pages: 0, Published: 1975
Guide for Setting JTPA Title II-A and Title III (EDWAA) Performance Standards for PY 1990. Authors: Employment and Training Administration, United States, Pages: 0, Published: 1990
The Musical: A Look at the American Musical Theater Authors: Richard Kislan, Pages: 310, Published: 1995
Bloodborne Pathogens Compliance Plan for the Educational Setting: How to Comply with Occupational Exposure to Bloodborne Pathogens, CFR Title 29, Part 1910.1030 Authors: Tom C Smith, Lynn C Bott, Jane Holzrichter, Pages: 0, Published: 1994

Web:
Scott Hanselman's Computer Zen - Setting the Title of the "DOS ... Just a small reminder for myself and others that you can set the title of the Command Prompt Window with the "TITLE" Batch Command. ...
Setting Post Title Length for Highest Rated widget Setting Post Title Length for Highest Rated widget.
Flex 3 - Setting the title of the HTML wrapper You can use the BrowserManager's setTitle() method to set the title in your HTML wrapper. This shows up as the name of the web page in the title bar of the ...
shopping cart "upload" - problem setting cart title - PayPal ... Instead the title should be something like "2 Items" (like the screenshots in the documentation pdf). So how to set the text shown left of ...
[gnome] gnome-terminal - setting tab title - Ubuntu Forums However I'm not sure how to set the title of individual tabs. ... In the next tab set the title to the one you want, and select not to show ...
Setting a title attribute for external links | drupal.org One issue for this is that if any of the external links had a title attribute set previously, this overwrites it. I wanted to figure out a way to make the ...
Javascript: Setting document.title to value including entities ... i think what is going on in the case of the div onclick is that, in attributes, entities are converted into literals, so it’s like setting document title to ...
exceeduser: Re: Setting the title in an xterm I need to set the title in an open xterm and as an icon. At work, under Win2K, using SCO XVision, in bash, I use the following case statement code ...
dynamically setting Html Title of master page from either ... How can I set the html title of my pages dynamically? I can either do it at the controller or ViewPage level. ...
Setting Window Title On New Window - .NET ASP Setting Window Title On New Window. Get answers to your questions in our .NET ASP forum.

Videos:
how to set title's to pics on imvu , mainly 4 nikkie, subscribe ;)? WEWTERZ? :x sub sub o.o
Build a Niche Store Empire Series - Set your Main Page Title In this segment of the Niche Store Builder series, we set the main page category and meta tag information
JERRY CLOWER-NINE & A HALF MINUTES WITH JERRY CLOWER Clower was 45 when MCA came calling and he began his professional career as a comedian. He often said, "I backed into show business." Many of his com...
Feaser Middle School Middletown Title I School Improvement Capital Area I.U. as Exemplary Schools Programs include: LawDay Mock Trial; Celebration of Constitution Day (by reading the document); National History Day; Parliamentary Primer for the Cl...
CWF Mid-Atlantic Wrestling : Converse wins 5th title 9/20/08 "The Boogie Woogie Man" Rob McBride's rampage costs him his Mid-Atlantic Heavyweight title and gives "The 1st" Ric Converse his record-setting 5th ti...
Step by step guide on setting up your AC-Web ultimant repack, & making it public Title says most all Download repack here Download heidi sql here Watch this video for newbies to publication
G&R Racing set to defend SCORE San Felipe 250 title The 22nd Annual SCORE San Felipe 250 will take place at the quaint fishing village of San Felipe, located on the East side of the Baja California pen...
Rpg Maker VX - RandomTutorial 1 Custom Title Screen & more This is a Requested Tutorial for how to change your Title screen and how to Set Vehicles on World Map... Sorry the name doesn't fit. Also how to chan...
Legend Of Zelda (Soundtrack) - Title Theme The Legend of Zelda is a high fantasy action-adventure video game series created by game designer Shigeru Miyamoto and developed and published by Nin...
Setting The Trap Theme From Home Alone read the title




Search This Site:










classic .asp site in content page - can it be done?

is this possible?

accessing menu in masterpage from childpage

problem faced during creating menu in asp.net 2.0 by menu control provided in visual studio 2005

changing the style of a link within web.sitemap

possible bug: wizard not working with masterpage

menuitemclick event not firing...

staticselectedstyle problem

master page

changing web site colors using themes - doubt

is there a way to turn off an "unknown server tag" for themes?

asp:menu submenu display control

tree view - not upto the requirements

treeview from database

move portion of asp:menu to right

response.write on page load event of the content page

sitemap bound treeview collapses on entering new page

sitemapdatasource and treeview

web.sitemap simple question

creating site map

dynamic loading of themes

links vs buttons

master pages: i need to make a footer

commandfield in themes

asp.net treeview copyto

programming sitemappath

bug? wierd problem with masterpages, default page, and controls rendering twice...help.

response.redirect raising exception in master page.

menuitem and imageurl problem

frames / include / masterpage

  Privacy | Contact Us
All Times Are GMT