- paypal ipn returns invalid
- cannot manually edit applicationhost.config
- must declare the scalar variable
- classic asp and access not working on windows 2008 64bit
- asp.net page titles are blank
- sql to get totals for last six months
- white space being counted as a node
- cross page posting not working
- collection is read only exception
- PayPal sending incorrect carrier information
- paypal guest user notice
- classic asp dictionary not working
- IE8 not supporting innerHTML
- differences between jet and odbc
- sugarcrm not inserting email
- select random records from access
- button click event firing twice
- how to send an email using cdosys
- installing perl on win2003 64 bit
- asp.net page event order
- rewrite rule for subdomains only
- extra items in javascript array
- IE7 margin auto not working
- IE7 border style dotted glitch
- ByRef and ByVal in vbscript
- weather rss feed
- Classic asp crib sheet
- Firefox onsubmit image change
- limit records in access
- AccessDataSource is thick
- double margins in IE6
- extra image padding in html emails
- decimal places in linux flash player
- broken emails in outlook 2007
- double spaced IE list items
- cannot remove movieclip
articles:
asp.net page titles are blank
Recently encountered this rather strange phenomenon: when using master pages and setting the page title from the aspx the title was was appearing blank.
Did several different tests with the title being set in the on Page_Load event and in the Page_PreRender. Tried both Me.Page.Title and Me.Title, but none of those things made any difference.
Having stepped away from the code behind for a moment i noticed that the title attribute in the page directive was blank i.e. Title="", could this somehow be overriding the title being set programmatically? Simple to test this idea - put some text in the Title attribute and see what happens. Lo and behold the Title being set in the code behind is now showing. Next i removed the Title attribute from the page directive entirely - and again the Title being set in the code behind was showing.
So it looks like if you are using master pages you can't have and empty Title attribute in the page directive of an aspx, interestingly though if you aren't using a master page you can have an empty Title attribute in the page directive and still set the title programmatically.
Post a comment
