Skip to main content

Setting Page Titles 2005 Style

By Philip Miseldine
Programming
Share:

Little tip.

To set the page title on an ASP.NET Web From using Whidbey, add runat=”server” properties to the head and title tags in your HTML:




<br /> </head></code></p> <p>Now, you can set the page easily using:</p> <p><code><br /> this.Title = "My new page title";</code></p> <p>Simple as!</p>

Philip is a Computer Science PhD student at Liverpool John Moores University. He's still not mastered guitar tabs, never finished Mario, and needs a haircut. He discusses life at http://www.miseldine.com/.

Integromat Tower Ad