CodeVerge.Net Beta


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

MS SQL 2008 on ASP.NET Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/19/2007 4:13:10 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 20 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
James25
Asp.Net User
Page title with masterpage9/19/2007 4:13:10 PM

0/0

Hi! I am trying to find a way to set up the title in the pages that inherit the masterpage automatically...like the page title + The master page title. Thanks!

Mikesdotnetting
Asp.Net User
Re: Page title with masterpage9/19/2007 6:57:33 PM

0/0

Page.Title = Master.Page.Title + " some string";

Regards Mike

8 out of 10 questions have already been asked. Their answers can be found using Google. Go on, try it.

If you prefer code samples or tutorials in another language, translate it for free at www.codechanger.com
James25
Asp.Net User
Re: Page title with masterpage9/19/2007 9:08:50 PM

0/0

Thanks!

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


Free Download:

Books:
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005
Professional ASP.NET 3.5: In C# and VB Authors: Bill Evjen, Scott Hanselman, Devin Rader, Pages: 1673, Published: 2008
Pro ASP.NET 2.0 in C# 2005: Create Next-generation Web Applications with the Latest Version of Microsoft's Revolutionary Technology Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1426, Published: 2006
Microsoft Office SharePoint Server 2007: The Complete Reference Authors: David Matthew Sterling, David Sterling, Pages: 788, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
SharePoint 2007 and Office Development Expert Solutions: Expert Solutions Authors: Randy Holloway, Andrej Kyselica, Steve Caravajal, Pages: 324, Published: 2007
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Expert C# 2005 Business Objects Authors: Rockford Lhotka, Pages: 668, Published: 2006

Web:
ASP.NET.4GuysFromRolla.com: Dynamically Setting the Page's Title ... May 10, 2006 ... We'll also look at a method that you can include in your master page or a base page class to automatically set the title based upon the site ...
Use Master page but different title for pages I have defined and tags in the master page as follow: <br /><a href="http://www.velocityreviews.com/forums/t119088-master-page-title-disappearing.html" title="Master page title disappearing" target="_" ><b>Master page title disappearing</b></a> Talk about Master page title disappearing. ... setting the page title programatically (Master.Page.Title = "abc" based on a database read. ...<br /><a href="http://forums.asp.net/p/1331302/2671852.aspx" title="master page title - ASP.NET Forums" target="_" ><b>master page title - ASP.NET Forums</b></a> The title in the master page isn't actually used, it's overwritten by the title on the content page. There are three ways to set this: ...<br /><a href="http://msdn.microsoft.com/en-us/library/wtxbf3hh.aspx" title="ASP.NET Master Pages Overview" target="_" ><b>ASP.NET Master Pages Overview</b></a> The @ Page directive binds the content page to a specific master page, and it defines a title for the page that will be merged into the master page. ...<br /><a href="http://dotnetperls.com/Content/Master-Page-SEO.aspx" title="ASP.NET - Master Page Title SEO" target="_" ><b>ASP.NET - Master Page Title SEO</b></a> Additionally, you want to change titles easily and automatically in ASP.NET with content pages and one master page. You want to improve SEO, usability, ...<br /><a href="http://forums.asp.net/p/1040151/1446280.aspx" title="ASP.NET 2.0: Appending To Master Page Title From Content Page ..." target="_" ><b>ASP.NET 2.0: Appending To Master Page Title From Content Page ...</b></a> Is it possible to append to the Master Page title from the content (child) page using the HTML file. I know it can be done in the code ...<br /><a href="http://www.velocityreviews.com/forums/t295684-masterpage-title.html" title="masterpage title" target="_" ><b>masterpage title</b></a> masterpage title. I'm using a master page for my web site and I want to ... in the master page 'title' section. How can I show my drop down ...<br /><a href="http://lichao.net/eblog/how-to-append-master-page-title-to-content-page-title-in-aspnet-20-20060944.html" title="How to Append Master Page title to Content Page title in ASP.NET ..." target="_" ><b>How to Append Master Page title to Content Page title in ASP.NET ...</b></a> If you are an IT professional as I am, you would love to live digitally and electronically too.<br /><a href="http://codeismagic.blogspot.com/2008/01/changing-master-page-title-base-on.html" title="Khaled Musaied [Code is MAGIC]: Changing Master Page title base on ..." target="_" ><b>Khaled Musaied [Code is MAGIC]: Changing Master Page title base on ...</b></a> This is a simple way to change the title of your Master Page according to the a content place holder. <head><title><%=((LiteralControl)TitlePlaceHolder. ...<br /></div></td> <td valign="top"> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 7; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script></td> </tr></table> <br /> <table width="100%"> <tr> <td style="width: 50%"> </td> <td> </td> </tr> </table> <br /> <div style="text-align:center"> <br /> <br /> <b>Search This Site: </b> <input type="hidden" name="cx" value="001993386287184627138:djlrq6ok3yq" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="text" name="q2" id="q2" size="25" onkeypress="if(event.keyCode == 13){SearchSite('q2');return false;}" value="" /> <input type="button" name="sa" value="Search" class="Button" onclick="SearchSite('q2');" /> </div> <br /> <script type="text/javascript"> function doSubscribe(S, E){ DoSubscribe(595211, S,E); } function doFavorite(S, E){ DoFavorite(595211, S,E); } </script> </td> <td id="rightPanel" valign="top" > <div style="width: 125px; text-align: right; overflow:hidden "> <div style="text-align: left; font-weight: bold; margin-left: 15px"><br /> <br /><br /> <img src="http://www.codeverge.net/images/icons/envelope2.gif" /> <a rel="nofollow" onclick="OpenInviteWin();">Invite</a><br /> <img src="http://www.codeverge.net/images/icons/folders.gif" /> <a href="../History/history_items.aspx" id="ctl00_CPH_RightMenu_A2" rel="nofollow">History</a> <br /> <img style="border:0px" src="http://www.codeverge.net/images/icons/user2.gif" /> <a href="../members.aspx" id="ctl00_CPH_RightMenu_A6">Members</a><br /> <img src="http://www.codeverge.net/images/icons/statements.gif" /> <a href="../sitemap/SiteMap.aspx" id="ctl00_CPH_RightMenu_A5" rel="nofollow">SiteMap</a> </div> <br /> <br /> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 3; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script> <br /><br /> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 3; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script> <br /><br /> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 2; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script> <br /><br /> <script type="text/javascript"> lqm_channel = 1; lqm_publisher = 303; lqm_zone = 1; lqm_format = 2; </script> <script type="text/javascript" src="http://a.lakequincy.com/s.js"></script> <div style="height: 100px"></div> <div style="width: 100px; overflow: hidden; text-align: left; padding: 5px; font-family: Arial;"> <br /> <a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/problem-with-label-properties-in-master-pages" title="problem with label properties in master pages" >problem with label properties in master pages</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/different-http-request-call-one-sitemap-instance-why-does-that-happen" title="different http request call one sitemap instance? why does that happen?" >different http request call one sitemap instance? why does that happen?</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/child-items-make-horizontal" title="child items - make horizontal???" >child items - make horizontal???</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/object-reference-not-set-to-an-instance-of-an-object" title="object reference not set to an instance of an object." >object reference not set to an instance of an object.</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/pass-control-from-masterpage-to-content-page" title="pass control from masterpage to content page" >pass control from masterpage to content page</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/problem-with-masterpage" title="problem with masterpage" >problem with masterpage</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/threadaborting-exception-don-t-understand-why" title="threadaborting exception, don't understand why" >threadaborting exception, don't understand why</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/creation-of-menu-problem.want-a-dynamic-effect" title="creation of menu problem...want a dynamic effect .." >creation of menu problem...want a dynamic effect ..</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/multiple-web.sitemap" title="multiple web.sitemap" >multiple web.sitemap</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/how-to-access-next-button-of-wizard-control" title="how to access next button of wizard control?" >how to access next button of wizard control?</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/multiple-menus-on-1-web-page-using-1-sitemap" title="multiple menus on 1 web page using 1 sitemap" >multiple menus on 1 web page using 1 sitemap</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/getting-nowhere-fast-with-database-driven-title-and-meta-tags" title="getting nowhere fast with database driven title and meta tags" >getting nowhere fast with database driven title and meta tags</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/masterpage-with-custom-class" title="masterpage with custom class" >masterpage with custom class</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/javascript-dynamic-menu-with-master-page" title="javascript dynamic menu with master page" >javascript dynamic menu with master page</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/themes-localization" title="themes & localization" >themes & localization</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/masterpage-not-reading-css" title="masterpage not reading css" >masterpage not reading css</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/sitemap-and-menu-control" title="sitemap and menu control" >sitemap and menu control</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/base-page" title="base page" >base page</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/link-button-on-a-master-page" title="link button on a master page" >link button on a master page</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/dynamically-override-sitemapnode" title="dynamically override sitemapnode?" >dynamically override sitemapnode?</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/variable-in-web.sitemap" title="variable in web.sitemap" >variable in web.sitemap</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/findcontrols-with-masterpage-and-vb.net" title="findcontrols with masterpage and vb.net" >findcontrols with masterpage and vb.net</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/is-it-possible-to-cache-a-master-page" title="is it possible to cache a master page ?" >is it possible to cache a master page ?</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/search-in-masterpage" title="search in masterpage" >search in masterpage</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/redirect-problem-in-master-page" title="redirect problem in master page" >redirect problem in master page</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/treeview-listing-folder-content" title="treeview - listing folder content." >treeview - listing folder content.</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/to-call-n-html-template" title="to call n html template" >to call n html template</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/adding-node-into-a-treeview-web-control" title="adding node into a treeview web-control" >adding node into a treeview web-control</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/master-page-and-css-problem" title="master page and css problem" >master page and css problem</a><br/><br/><a href="http://www.codeverge.net/ng.asp-net-forum.master_pages_themes_and_navigation_controls/using-of-sitemappath-menu" title="using of sitemappath & menu" >using of sitemappath & menu</a><br/><br/> </div> </div> </td> </tr> <tr> <td id="leftBottom" valign="top" style="width: 100px">   </td> <td id="ctl00_centerBottom" valign="top" align="center"> <b> <a rel="nofollow" href='http://www.codeverge.net/sitemap/privacy.aspx'>Privacy</a> | <a rel="nofollow" href='http://www.codeverge.net/sitemap/contact.aspx'>Contact Us</a></b> <br /> All Times Are GMT </td> <td id="rightBottom" valign="top" style="width: 100px"> </td> </tr> </table> <script type="text/javascript"> //<![CDATA[ var _Rating_MemberRating = -1; var _Rating_tbl = document.getElementById('ctl00_CPH_centerFront_ctl29'); function Rating_RollRates(){ if(_Rating_tbl.rows.length < 10){ for ( i =10 ; i >0; i--){ setTimeout( function(){ var row = _Rating_tbl.insertRow(_Rating_tbl.rows.length); var cell = row.insertCell(0); cell.onclick = function(){Rating_RateIt(this.innerHTML);}; cell.innerHTML = 12 - _Rating_tbl.rows.length; cell.className = 'Rating_AvgRating'; if(cell.innerHTML == _Rating_MemberRating){ cell.title='My Rating'; cell.style.color='orange'; } }, (10-i) * 25); } setTimeout(function(){Rating_Close()},10000) } else{ Rating_Close() } } function Rating_Close(){ if(_Rating_tbl.rows.length > 1) for ( i =0 ; i < 10; i++) setTimeout(function(){ _Rating_tbl.deleteRow(_Rating_tbl.rows.length -1 )} , i * 25) } function Rating_RateIt(rating){ ItemPageWs.RateItem(595211, rating, function(A){ document.getElementById('ctl00_CPH_centerFront_ctl30').innerHTML ='('+ parseFloat(A[0]).toFixed(2) +', '+ A[1] +')'; _Rating_MemberRating = rating; Rating_RollRates(); AlertMsg('Your Rating Was Updated'); Afirm( document.getElementById('ctl00_CPH_centerFront_ctl30')); }); } RestrictHeights('tcContent');Sys.Application.initialize(); //]]> </script> </form> </body> </html> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_001993386287184627138%3Adjlrq6ok3yq&lang=en"></script> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-3447589-1"); pageTracker._trackPageview(); </script>