DotNetNuke Tip: How to modify the page title with your module

Last Updated Wednesday, January 23, 2008 4:51 PM


This is actually a very simple trick to do inside of your modules, though you might need to setup an option to allow this to be turned on or off depending on what the site administrator wants the page title to be.

In C# you can use the following code

DotNetNuke.Framework.CDefault tp = (DotNetNuke.Framework.CDefault)this.Page;

tp.Title = "This is my page title";

So the next time you're coding a module and need to change the page title, it's that simple.

See you all at OpenForce07 in Vegas!

Posted from weblogs.asp.net/christoc
Recent Comments
Thanks!
Posted By: Andy McKenna on Tuesday, September 02, 2008 7:29 PM